reload a class file without restarting Tomcat
Hi, I have a webapp (java, jsp, struts,mysql) on a shared host. Tomcat version is 5.0.27. I have my webapp locally. When i do a slight change in a java file, I would like to be able to upload the updated recompiled class file in my webapp on the shared host. Is there a way that the class be reloaded without restarting the server (the server restarts once a day only since it is a shared host.) Thanks a lot, Michel
Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2
I have installed Tomcat 7.0.6 via the zip on one of my Windows 2003 R2 machine and ran the service.bat file. The service installs and will start with no problems. However when I try to stop the service I have issues. If I try via the Service Control Manager, the status bar goes half way then stops. If I wait it returns with a failure that the service did not send a stop signal. I can hit the Close button and Tomcat is not running anymore. But this prevents me from running the Restart option. I also tried this via command line by running: net stop Tomcat7 System error 109 has occurred. The pipe has been ended. I also have this same problem with Tomcat 7.0.5 on a different Windows 2003 system. There are no messages in the EventViewer or the logs. Ideas? Tom
Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2
2011/2/1 Tom Kielty tom.kie...@calabrio.com: I have installed Tomcat 7.0.6 via the zip on one of my Windows 2003 R2 machine and ran the service.bat file. The service installs and will start with no problems. However when I try to stop the service I have issues. If I try via the Service Control Manager, the status bar goes half way then stops. If I wait it returns with a failure that the service did not send a stop signal. I can hit the Close button and Tomcat is not running anymore. But this prevents me from running the Restart option. I also tried this via command line by running: net stop Tomcat7 System error 109 has occurred. The pipe has been ended. I also have this same problem with Tomcat 7.0.5 on a different Windows 2003 system. There are no messages in the EventViewer or the logs. https://issues.apache.org/jira/browse/DAEMON-195 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2
Konstantin, Thanks for the reply. I tried to look for a defect but must not have looked in the right place. It says this is a minor defect. Is there anyway to increase the priority as this is a problem when writing scripts to automatically restart Tomcat? Thanks Tom -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, February 01, 2011 6:31 AM To: Tomcat Users List Subject: Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2 2011/2/1 Tom Kielty tom.kie...@calabrio.com: I have installed Tomcat 7.0.6 via the zip on one of my Windows 2003 R2 machine and ran the service.bat file. The service installs and will start with no problems. However when I try to stop the service I have issues. If I try via the Service Control Manager, the status bar goes half way then stops. If I wait it returns with a failure that the service did not send a stop signal. I can hit the Close button and Tomcat is not running anymore. But this prevents me from running the Restart option. I also tried this via command line by running: net stop Tomcat7 System error 109 has occurred. The pipe has been ended. I also have this same problem with Tomcat 7.0.5 on a different Windows 2003 system. There are no messages in the EventViewer or the logs. https://issues.apache.org/jira/browse/DAEMON-195 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Jasper Compiling Error - return type incompatible with JspSourceDependent.getDependants
Hi Chris, Thanks for your help, I had some days off - that's why my answer is a bit late. Did you upgrade recently? This is an internal API that is subject to change, and might have changed during an upgrade that left files in your work directory. Compiling isn't working since the server was setup (by someone else). I'll try cleaning the 'work' directories. Since it's a (very) productive server I don't have too many service windows. That's why I tried to reproduce the problem on the test server but did not succeed yet. And on both servers are at least two applications and both won't compile on the productive machine. And yes, we did upgrade from RHEL5.5 to RHEL5.6 and the tomcat packages were upgrade. But since compiling did'nt work before I'm not sure what the impact of this update is. Getting rid of the 'work' directory is probably my best bet right now. Try stopping Tomcat, removing Tomcat's work directory, and then re-starting. Your JSPs should re-compile and work fine after that. I'll give that a go as soon as I got a service window and let you know. If you are precompiling your JSPs, you'll need to re-precompile your JSPs with your current Tomcat version. Well, I haven't done any precompilation yet. I was just wondering if that might help pin-down the problem. Unfortunately I'm not a developer but a server admin and have no clue how a build.xml should look like that ca 'simulate' a Tomcat/Jasper precompiling. Also, your version of Tomcat is very old. If you are using a package-managed version of Tomcat, you may be stuck with an ancient version. Consider using the canonical Apache version to stay up-to-date. The version we use is the stock Tomcat for RHEL5. For now I'm stuck with that version. Thanks for your help and have a nice day, Thomas -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Donnerstag, 27. Januar 2011 23:14 To: Tomcat Users List Subject: Re: Jasper Compiling Error - return type incompatible with JspSourceDependent.getDependants -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 1/27/2011 3:09 AM, Kupper ext-FA, Thomas wrote: It fails to compile a simple index.jsp on the productive server because the generated index_jsp.java files differs. Version information: Server version: Apache Tomcat/5.5.23 [snip] the automatically generated index_jsp.java diffiers in the following lines: -- --- index_jsp.java_not-compiling 2011-01-27 08:38:46.0 +0100 +++ index_jsp.java_compiling-fine 2011-01-27 08:38:41.0 +0100 @@ -7,9 +7,9 @@ public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { - private static java.util.Vector _jspx_dependants; + private static java.util.List _jspx_dependants; - public java.util.List getDependants() { + public Object getDependants() { return _jspx_dependants; } -- Did you upgrade recently? This is an internal API that is subject to change, and might have changed during an upgrade that left files in your work directory. Try stopping Tomcat, removing Tomcat's work directory, and then re-starting. Your JSPs should re-compile and work fine after that. If you are precompiling your JSPs, you'll need to re-precompile your JSPs with your current Tomcat version. Also, your version of Tomcat is very old. If you are using a package-managed version of Tomcat, you may be stuck with an ancient version. Consider using the canonical Apache version to stay up-to-date. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1B7h0ACgkQ9CaO5/Lv0PCQZACfdbSR9T5SmUa9Q4Sw70EBPdHF AwAAoLq3eEVWR1D1U21cdHEz6Ws3PsOX =o/Sz -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: OutOfMemory issue
Hi Christopher, Yes, we were on jdk 1.4 and now we have moved to 1.6. After this, we were facing the BufferOverFlow on this particular page so we increased the buffer size to 4 MB ( yes .. 4 MiB). There is no increase in the number of users. The heap space is set to 128 MB, and Max Perm is set to 64mb. Thanks, Aparna From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Date: 02/01/2011 03:37 AM Subject: Re: OutOfMemory issue -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aparna, On 1/31/2011 8:42 AM, Aparna1 V wrote: I am facing a frequent OutOfMemoryError on the Java heap space after just a few hits on the application. (The page buffer for a few jsps are of the range 4000kb) 4000kb is 4MiB. Is that what you meant? That's a pretty big buffer. What do you need that big buffer for? The heap size for the app is 128 MB. Is that fixed? What are you memory settings? Earlier, I was using TC 4 with mssql pooling(pool.exe) without any issue on a 64 MB heap size. Were you using an older JVM version, too? I've found that usually everything newer needs a bit more RAM than older versions. Is this an issue with the server memory management or is there something wrong with the configuration, or any other thing that i am overlooking? Please advise. Has anything else changed recently? The only time we ever got OOMEs was when we had actually reached a user threshold where we simply needed more memory to handle the traffic. Before then, we were running with a 64MiB heap and decided to double it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1HMpUACgkQ9CaO5/Lv0PD8HQCglFOFd17edClwYNin4DhlHV2t nJ0AoJOM3tnTuNJbQlHGECx4T7v2r39e =Jyfq -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Apache as a front end for a Tomcat application
Hi, I am trying to use Apache as a front end to an application which runs on a Tomcat server. On lan I am able to correctly see it but from internet things are not working. I tried understanding mod_jk page but I was unable to get to the correct settings. apache vhost can be read here http://pastebin.com/L32D6ii5 following is the application I am trying to get up and running https://confluence.sakaiproject.org/display/DOC/Sakai+2.7 (the binary version of above page). On lan it is accessible http://192.168.1.4:8080/portal perfectly but from internet I am not clear as what is wrong with it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reload a class file without restarting Tomcat
From: Michel Getraide [mailto:getra...@gmail.com] Subject: reload a class file without restarting Tomcat Tomcat version is 5.0.27. Not supported - move up. Is there a way that the class be reloaded without restarting the server (the server restarts once a day only since it is a shared host.) You can't reload an individual class, but you can restart just the webapp. Use Tomcat's manager app to do so - after your upgrade to a supported version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: OutOfMemory issue
From: Aparna1 V [mailto:aparna...@tcs.com] Subject: Re: OutOfMemory issue The heap space is set to 128 MB, and Max Perm is set to 64mb. The longer you avoid looking inside the heap or collecting real data, the longer it's going to be before you have an answer. To repeat yesterday's questions: And a heap dump shows??? GC logging shows??? http://wiki.apache.org/tomcat/OutOfMemory - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
follow on delpoying a war and starting application
I have a war file that is produced by the Oracle version of Eclipse and the created war file works with Websphere and WebLogic. I have been attempting to deploy this war file in Tomcat 7. After receiving some helpful advice from this mail group I have been able to deploy the application. Thanks for the help folks. What I ended up doing is the following 1. Download JAS-WS RI and copy jars to tomcat/lib. Searching the internet I found this article (http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/ ) which provided a working example which I could reverse and apply to my system. 2. Modify the web.xml 3. Create the sun-jaxws.xml The following is a sampling of the original web.xml servlet servlet-nameInitServlet/servlet-name servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namedataextract.csv/servlet-name servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class /servlet servlet servlet-nameLearnedExceptionServiceServlethttp/servlet-name servlet-classcom.surecomp.allMATCH.client.webservices.LearnedExceptionService/servlet-class load-on-startup0/load-on-startup /servlet First I had to add a listener listener listener-class com.sun.xml.ws.transport.http.servlet.WSServletContextListener /listener-class /listener Each of my web service names end in ServiceServlethttp I had to replace each class name with com.sun.xml.ws.transport.http.servlet.WSServlet So the same section of web.xml end up looking like this listener listener-class com.sun.xml.ws.transport.http.servlet.WSServletContextListener /listener-class /listener servlet servlet-nameInitServlet/servlet-name servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namedataextract.csv/servlet-name servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class /servlet servlet servlet-nameLearnedExceptionServiceServlethttp/servlet-name servlet-classcom.sun.xml.ws.transport.http.servlet.WSServlet/servlet-class load-on-startup0/load-on-startup /servlet Then I had to define the end points and this is done by means of sun-jaxws.xml endpoints xmlns=http://java.sun.com/xml/ns/jax-ws/ri/runtime; version=2.0 endpoint name=DataExtractServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.DataExtractService url-pattern=/DataExtractService/ endpoint name=ReportServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.ReportService url-pattern=/ReportService/ endpoint name=BranchesServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.BranchesService url-pattern=/BranchesService/ endpoint name=ContactServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.ContactService url-pattern=/ContactService/ endpoint name=ArchiveServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.ArchiveService url-pattern=/ArchiveService/ endpoint name=CLSStatusServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.CLSStatusService url-pattern=/CLSStatusService/ endpoint name=LanguageServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.LanguageService url-pattern=/LanguageService/ endpoint name=TradeLocksServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.TradeLocksService url-pattern=/TradeLocksService/ endpoint name=PasswordSettingsServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.PasswordSettingsService url-pattern=/PasswordSettingsService/ endpoint name=BICServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.BICService url-pattern=/BICService/ endpoint name=LoginServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.LoginService url-pattern=/LoginService/ endpoint name=MonitorServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.MonitorService url-pattern=/MonitorService/ endpoint name=BrokerServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.BrokerService url-pattern=/BrokerService/ endpoint name=QueueServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.QueueService url-pattern=/QueueService/ endpoint name=HolidayServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.HolidayService url-pattern=/HolidayService/ endpoint name=CurrencyServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.CurrencyService url-pattern=/CurrencyService/ endpoint name=OverviewServiceServlethttp implementation=com.surecomp.allMATCH.client.webservices.OverviewService url-pattern=/OverviewService/ endpoint name=PauseServiceServlethttp
Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2
2011/2/1 Tom Kielty tom.kie...@calabrio.com: Konstantin, Thanks for the reply. I tried to look for a defect but must not have looked in the right place. It says this is a minor defect. Is there anyway to increase the priority as this is a problem when writing scripts to automatically restart Tomcat? It is possible to change the level, but I do not think that it is major issue [1] (there is no normal severity in this instance of JIRA), nor I think that that field matters anyway. It is worth adding a comment that it is observed not only in that environment where it was originally reported, or any other concerns. [1] https://issues.apache.org/jira/secure/ShowConstantsHelp.jspa?decorator=popup#PriorityLevels Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Optimize CPU Hogging Tomcat 6
Hi Everyone, We have an Apache Tomcat 6 server (HA cluster using DRBD) that is hogging the CPU, this happens when there are simultaneous users accessing at the same time, which should be considered normal because they're only 30. How will I optimize Tomcat? Here's my server.xml file: [root@node1 ~]# cat /web/tomcat/tomcat6/conf/server.xml ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- Prevent memory leaks due to use of particular java/javax APIs-- Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Many thanks! jan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Optimize CPU Hogging Tomcat 6
From: jan gestre [mailto:ipcopper...@gmail.com] Subject: Optimize CPU Hogging Tomcat 6 We have an Apache Tomcat 6 server (HA cluster using DRBD) that is hogging the CPU, this happens when there are simultaneous users accessing at the same time, which should be considered normal because they're only 30. How will I optimize Tomcat? Highly unlikely that you need to optimize Tomcat. Much more likely that you have a bug in your webapp. Take thread dumps and see who is spending time where. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Http Sessions
Hi, I'm trying to use PersistentManager so I can store my sessions in some kind of storage and be able to use a load balancer. But I see that it takes a few seconds for tomcat to save sessions in the storage, even if I set maxIdleBackup parameter to 0, it will take around 2 or 3 seconds to store it. Is there a way to tell tomcat to do it immediately after the session was modified? Thanks, Jonathan
Re: reload a class file without restarting Tomcat
Thanks. But I cannot restart tomcat neither use the tomcat's manager since it is a shared host (godaddy) On Tue, Feb 1, 2011 at 4:01 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Michel Getraide [mailto:getra...@gmail.com] Subject: reload a class file without restarting Tomcat Tomcat version is 5.0.27. Not supported - move up. Is there a way that the class be reloaded without restarting the server (the server restarts once a day only since it is a shared host.) You can't reload an individual class, but you can restart just the webapp. Use Tomcat's manager app to do so - after your upgrade to a supported version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reload a class file without restarting Tomcat
From: Michel Getraide [mailto:getra...@gmail.com] Subject: Re: reload a class file without restarting Tomcat But I cannot restart tomcat neither use the tomcat's manager since it is a shared host (godaddy) If the hosting service does not provide you with a means of restarting your webapp, you need to find another service. If they do provide you with some means of doing so, you'll have to follow whatever protocol they prescribe. You might want to browse the mailing list archives for comments concerning the use of godaddy as a hosting service... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
help setting up connection pool with sql server
Hello all... hope all is well I am trying to configure a connection pool with Tomcat 7 and Sql Server 2005 I am getting the following error message when Tomcat starts Feb 1, 2011 10:38:16 AM com.sun.xml.ws.server.MonitorBase createRoot INFO: Metro monitoring rootname successfully set to: null Feb 1, 2011 10:38:16 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate init INFO: WSSERVLET14: JAX-WS servlet initializing Configuration loaded from the file: [C:\Downloads\tomcat-7\apache-tomcat-7.0.6\ ebapps\allMATCHWeb\allmatch.properties] java.lang.UnsupportedOperationException: Not supported by BasicDataSource at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataS urce.java:1062) at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95) at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146) at com.surecomp.allMATCH.client.InitServlet.verifyDatabaseVersion(InitS rvlet.java:574) at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:178) at javax.servlet.GenericServlet.init(GenericServlet.java:160) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper java:1133) I search of the internet seems to indicate that using getConnection with username/passwords params is not support, I doubt that to be the cause. My context.xml is the following Resource name=jdbc/system auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url= jdbc:sqlserver://allmatch-test:1433;databaseName=system; username=sa password=sa12 maxActive=20 maxIdle=30 maxWait=-1 / Resource name=jdbc/sureus33xxx auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url= jdbc:sqlserver://allmatch-test:1433;databaseName=sureus33xxx; username=sa password=sa12 maxActive=20 maxIdle=30 maxWait=-1 / My web.xml resource information is the following RESOURCE-REF RES-REF-NAMEjdbc/system/RES-REF-NAME RES-TYPEjavax.sql.DataSource/RES-TYPE RES-AUTHContainer/RES-AUTH /RESOURCE-REF RESOURCE-REF RES-REF-NAMEjdbc/sureus33xxx/RES-REF-NAME RES-TYPEjavax.sql.DataSource/RES-TYPE RES-AUTHContainer/RES-AUTH /RESOURCE-REF My code connects via the following logic Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/ + sDatabase.toLowerCase()); conn = ds.getConnection(sUsername, sPassword); One question I do have is if getConnection works what username/password should I provide... I would be providing a tomcat username/password my tomcat-users.xml is the following ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=manager-gui / role rolename=manager-script / role rolename=manager-jmx / role rolename=manager-status / role rolename=standard / role rolename=admin-gui / role rolename=admin-script / user username=tomcat password=tomcat roles=admin-gui,admin-script,standard,manager-script,manager-gui,manager-jmx,manager-status/ /tomcat-users Thanks in advance for any insight and assistenance you may be able to provide... Sincerely, Robert Jenkin Surecomp Services, Inc. 2 Hudson Place, 4th Floor Hoboken, NJ 07030 Skype: robert.jenkin Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537 http://www.Surecomp.com This mail was sent via Mail-SeCure System.
memory leak warning ThreadLocal with key of type [null] in 6.0.29
Hi, I got following warning after stopping my context with Tomcat 6.0.29 01.02.2011 15:58:00 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SCHWERWIEGEND: The web application [/myapp] created a ThreadLocal with key of type [null] (value [com.MyClass$1@7cef53]) and a value of type [org.apache.commons.codec.net.URLCodec] (value [org.apache.commons.codec.net.URLCodec@445c74]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. I searched in this list and found some answers saying that these messages with key of type [null] are false positives. This should have been fixed in 6.0.25 according to these posts and according the relase notes: Modify ThreadLocal memory leak detection to not report false positives and to simplify implementation. (markt/kkolinko) The corresponding lines in myClass are: private static final ThreadLocalURLCodec sURLCodec = new ThreadLocalURLCodec() { protected URLCodec initialValue() { return new URLCodec(); }}; Is this a false alarm or wrong usage? Regards, Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2
Konstantin Kolinko wrote: 2011/2/1 Tom Kielty tom.kie...@calabrio.com: Konstantin, Thanks for the reply. I tried to look for a defect but must not have looked in the right place. It says this is a minor defect. Is there anyway to increase the priority as this is a problem when writing scripts to automatically restart Tomcat? It is possible to change the level, but I do not think that it is major issue [1] (there is no normal severity in this instance of JIRA), nor I think that that field matters anyway. It is worth adding a comment that it is observed not only in that environment where it was originally reported, or any other concerns. You may also want to have a look at this page : http://commons.apache.org/daemon/procrun.html and in particular at the entry about --StopTimeout Short explanation : the tomcat7.exe program is in fact a renamed copy of that procrun program. It is a wrapper which runs as a Windows Service, and itself runs the JVM which runs Tomcat. No guarantee, but playing around a bit with this parameter may just happen to solve your problem. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: OutOfMemory issue
Hi Charles, Thanks for the suggestion. There is no heap dump. I can see just the following in my stdout: SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at org.apache.struts.taglib.html.SelectTag.doEndTag(SelectTag.java:370) at org.apache.jsp.jsp.assignMethToDrivertype_jsp._jspx_meth_html_005fselect_005f9(assignMethToDrivertype_jsp.java:2270) at org.apache.jsp.jsp.assignMethToDrivertype_jsp._jspx_meth_logic_005fequal_005f2(assignMethToDrivertype_jsp.java:2217) at org.apache.jsp.jsp.assignMethToDrivertype_jsp._jspx_meth_logic_005fnotEqual_005f0(assignMethToDrivertype_jsp.java:1525) at org.apache.jsp.jsp.assignMethToDrivertype_jsp._jspService(assignMethToDrivertype_jsp.java:383) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List users@tomcat.apache.org Date: 02/01/2011 07:45 PM Subject: RE: OutOfMemory issue From: Aparna1 V [mailto:aparna...@tcs.com] Subject: Re: OutOfMemory issue The heap space is set to 128 MB, and Max Perm is set to 64mb. The longer you avoid looking inside the heap or collecting real data, the longer it's going to be before you have an answer. To repeat yesterday's questions: And a heap dump shows??? GC logging shows??? http://wiki.apache.org/tomcat/OutOfMemory - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
help setting up connection pool with sql server
Update: I have amended the code not to supply a username/password to getConnection since it is not supported. I have gotten past that point. But now it is reporting the following; org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla ss 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL ' jdbc:sqlserv er://allmatch-test:1433;databaseName=system;' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(B asicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat aSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo urce.java:1044) at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95) at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146) the following jar was added to tomcat\lib prior to starting tomcat sqljdbc.jar - which is the Microsoft sql server driver Original Posting: Hello all... hope all is well I am trying to configure a connection pool with Tomcat 7 and Sql Server 2005 I am getting the following error message when Tomcat starts Feb 1, 2011 10:38:16 AM com.sun.xml.ws.server.MonitorBase createRoot INFO: Metro monitoring rootname successfully set to: null Feb 1, 2011 10:38:16 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate init INFO: WSSERVLET14: JAX-WS servlet initializing Configuration loaded from the file: [C:\Downloads\tomcat-7\apache-tomcat-7.0.6\ ebapps\allMATCHWeb\allmatch.properties] java.lang.UnsupportedOperationException: Not supported by BasicDataSource at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataS urce.java:1062) at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95) at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146) at com.surecomp.allMATCH.client.InitServlet.verifyDatabaseVersion(InitS rvlet.java:574) at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:178) at javax.servlet.GenericServlet.init(GenericServlet.java:160) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper java:1133) I search of the internet seems to indicate that using getConnection with username/passwords params is not support, I doubt that to be the cause. My context.xml is the following Resource name=jdbc/system auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url= jdbc:sqlserver://allmatch-test:1433;databaseName=system; username=sa password=sa12 maxActive=20 maxIdle=30 maxWait=-1 / Resource name=jdbc/sureus33xxx auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url= jdbc:sqlserver://allmatch-test:1433;databaseName=sureus33xxx; username=sa password=sa12 maxActive=20 maxIdle=30 maxWait=-1 / My web.xml resource information is the following RESOURCE-REF RES-REF-NAMEjdbc/system/RES-REF-NAME RES-TYPEjavax.sql.DataSource/RES-TYPE RES-AUTHContainer/RES-AUTH /RESOURCE-REF RESOURCE-REF RES-REF-NAMEjdbc/sureus33xxx/RES-REF-NAME RES-TYPEjavax.sql.DataSource/RES-TYPE RES-AUTHContainer/RES-AUTH /RESOURCE-REF My code connects via the following logic Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/ + sDatabase.toLowerCase()); conn = ds.getConnection(sUsername, sPassword); One question I do have is if getConnection works what username/password should I provide... I would be providing a tomcat username/password my tomcat-users.xml is the following ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=manager-gui / role rolename=manager-script / role rolename=manager-jmx / role rolename=manager-status / role rolename=standard / role rolename=admin-gui / role rolename=admin-script / user username=tomcat password=tomcat roles=admin-gui,admin-script,standard,manager-script,manager-gui,manager-jmx,manager-status/ /tomcat-users Thanks in advance for any insight and assistenance you may be able to provide... Sincerely, Robert Jenkin Surecomp Services, Inc. 2 Hudson Place, 4th Floor Hoboken, NJ 07030 Skype: robert.jenkin Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537 http://www.Surecomp.com This mail was sent via Mail-SeCure System.
Tomcat shutdown
Hi, It is Tomcat 6.0.29 on OSX 10.6.5. If I ssh to the machine and shutdown Tomcat and later boot it back again, all those components which are using AWT are not usable. However if I Apple Remote Desktop to the machine, open up Terminal there, shut down Tomcat and start it up, all AWT components will work just fine. Any good explanation ? Thanks ahead, János - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
help setting up connection pool with sql server
Update: problem found and corrected.. now working... caused by a leading space in the url setting url= jdbc:sqlserver://allmatch-test:1433;databaseName=system; Update: I have amended the code not to supply a username/password to getConnection since it is not supported. I have gotten past that point. But now it is reporting the following; org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla ss 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL ' jdbc:sqlserv er://allmatch-test:1433;databaseName=system;' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(B asicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat aSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo urce.java:1044) at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95) at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146) the following jar was added to tomcat\lib prior to starting tomcat sqljdbc.jar - which is the Microsoft sql server driver Original Posting: Hello all... hope all is well I am trying to configure a connection pool with Tomcat 7 and Sql Server 2005 I am getting the following error message when Tomcat starts Feb 1, 2011 10:38:16 AM com.sun.xml.ws.server.MonitorBase createRoot INFO: Metro monitoring rootname successfully set to: null Feb 1, 2011 10:38:16 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate init INFO: WSSERVLET14: JAX-WS servlet initializing Configuration loaded from the file: [C:\Downloads\tomcat-7\apache-tomcat-7.0.6\ ebapps\allMATCHWeb\allmatch.properties] java.lang.UnsupportedOperationException: Not supported by BasicDataSource at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataS urce.java:1062) at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95) at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146) at com.surecomp.allMATCH.client.InitServlet.verifyDatabaseVersion(InitS rvlet.java:574) at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:178) at javax.servlet.GenericServlet.init(GenericServlet.java:160) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper java:1133) I search of the internet seems to indicate that using getConnection with username/passwords params is not support, I doubt that to be the cause. My context.xml is the following Resource name=jdbc/system auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url= jdbc:sqlserver://allmatch-test:1433;databaseName=system; username=sa password=sa12 maxActive=20 maxIdle=30 maxWait=-1 / Resource name=jdbc/sureus33xxx auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url= jdbc:sqlserver://allmatch-test:1433;databaseName=sureus33xxx; username=sa password=sa12 maxActive=20 maxIdle=30 maxWait=-1 / My web.xml resource information is the following RESOURCE-REF RES-REF-NAMEjdbc/system/RES-REF-NAME RES-TYPEjavax.sql.DataSource/RES-TYPE RES-AUTHContainer/RES-AUTH /RESOURCE-REF RESOURCE-REF RES-REF-NAMEjdbc/sureus33xxx/RES-REF-NAME RES-TYPEjavax.sql.DataSource/RES-TYPE RES-AUTHContainer/RES-AUTH /RESOURCE-REF My code connects via the following logic Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/ + sDatabase.toLowerCase()); conn = ds.getConnection(sUsername, sPassword); One question I do have is if getConnection works what username/password should I provide... I would be providing a tomcat username/password my tomcat-users.xml is the following ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=manager-gui / role rolename=manager-script / role rolename=manager-jmx / role rolename=manager-status / role rolename=standard / role rolename=admin-gui / role rolename=admin-script / user username=tomcat password=tomcat roles=admin-gui,admin-script,standard,manager-script,manager-gui,manager-jmx,manager-status/ /tomcat-users Thanks in advance for any insight and assistenance you may be able to provide... Sincerely, Robert Jenkin Surecomp Services, Inc. 2 Hudson Place, 4th Floor Hoboken, NJ 07030 Skype: robert.jenkin Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537 http://www.Surecomp.com This mail was sent via Mail-SeCure System.
apache question
Hi, I have a simple question regarding apache, I found out that I need to use apache httpd with tomcat, I have already installed tomcat apache in my server my question is does tomcat comes already with buildin apache httpd ? and what about mod_jk do I need to download it ? Thanks LS
Re: Tomcat shutdown
2011/2/1 János Löbb janos.l...@yale.edu: It is Tomcat 6.0.29 on OSX 10.6.5. If I ssh to the machine and shutdown Tomcat and later boot it back again, all those components which are using AWT are not usable. However if I Apple Remote Desktop to the machine, open up Terminal there, shut down Tomcat and start it up, all AWT components will work just fine. Any good explanation ? Create $CATALINA_BASE/bin/setenv.sh with the following text CATALINA_OPTS=-Djava.awt.headless=true Google for java.awt.headless for more info, e.g. look here: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: OutOfMemory issue
From: Aparna1 V [mailto:aparna...@tcs.com] Subject: RE: OutOfMemory issue There is no heap dump. You have to take one. Again, read the link: http://wiki.apache.org/tomcat/OutOfMemory - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: memory leak warning ThreadLocal with key of type [null] in 6.0.29
From: Michael Heinen [mailto:mhn4...@googlemail.com] Subject: memory leak warning ThreadLocal with key of type [null] in 6.0.29 Is this a false alarm or wrong usage? Pretty much any usage of ThreadLocal in a thread-pooling environment is wrong usage, unless you are very careful to clean up after yourself on *each* request. You don't have control over the threads, the pool manager does, so there's no guarantee that your servlet code will ever see that thread again. Better to create app-specific resource pools at the ServletContext, servlet, or session level. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: cannot access welcome page on Windows Server 2003 R2 SP2
I found, using netstat, that process with pid 4 opened port 80. I killed the process tree from Task Manager and the system shut down saying it was a system critical process (DCOM). Anil -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, January 31, 2011 6:00 PM To: Tomcat Users List Subject: RE: cannot access welcome page on Windows Server 2003 R2 SP2 From: Philip Anil-QBW348 [mailto:anil.phi...@motorolasolutions.com] Subject: cannot access welcome page on Windows Server 2003 R2 SP2 I did the same on Windows Server 2003 R2 SP2 and it does not bring up the web page. I get Under Construction. The site you are trying to view does not have a default page. Sounds like you have something else listening on port 80 - likely IIS. Use netstat to find out what's preempting Tomcat and get rid of it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Http Sessions
Hi Jonathan, checkout this thread for an answer: http://old.nabble.com/Understanding-the-Persistent-Session-Manager-td30757126.html Cheers, Martin On Tue, Feb 1, 2011 at 3:40 PM, Jonathan Leibiusky ionat...@gmail.com wrote: Hi, I'm trying to use PersistentManager so I can store my sessions in some kind of storage and be able to use a load balancer. But I see that it takes a few seconds for tomcat to save sessions in the storage, even if I set maxIdleBackup parameter to 0, it will take around 2 or 3 seconds to store it. Is there a way to tell tomcat to do it immediately after the session was modified? Thanks, Jonathan -- Martin Grotzke http://www.javakaffee.de/blog/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using logback for Tomcat internal logging
On 1/28/11 7:39 AM, Brett Delle Grazie wrote: On 27 January 2011 15:17, Roy McMorranmcmor...@mdibl.org wrote: Can anyone point me to a document detailing how to replace Tomcat's internal logging (via JULI) with logback? Not for access logs, or the logging output of webapps, but the Tomcat internal logging that ordinarily goes to tomcat.log, etc. Try here: https://github.com/grgrzybek/tomcat-slf4j-logback Brilliant, that's working very well, thank you. -- Roy McMorran Systems Administrator MDI Biological Laboratory mcmor...@mdibl.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Shared context.xml on WIndows XP
Thanks to all for their help. After some more investigation, I realized I really didn't want Tomcatto follow the sym links. I solved my problem by defining some Contexts in server.xml so that, for eample, /images looked for a specific folder (not under Tomcat's control) -- Jonathan Rosenberg Founder Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org/ On Mon, Jan 31, 2011 at 3:09 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Shared context.xml on WIndows XP 1) I (think I) understand about the case-insensitivity issue. But I thought that was only a security concern this machine does not face the public net. It can also mask sloppy programming that will fail on real deployments. 2) Does this mean I can;t do what I want this way on Windows? It will be ugly and somewhat painful. http://en.wikipedia.org/wiki/Symbolic_link#Microsoft_Windows - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: cannot access welcome page on Windows Server 2003 R2 SP2
Hi, On 1 February 2011 16:50, Philip Anil-QBW348 anil.phi...@motorolasolutions.com wrote: I found, using netstat, that process with pid 4 opened port 80. I killed the process tree from Task Manager and the system shut down saying it was a system critical process (DCOM). Might be malware... -- Best Regards, Brett Delle Grazie - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat on Windows XP: WAR file not fully unpacked
I'm on Windows XP, local Tomcat running. Most of the time when I upload (from the local machine) a .war file via the Manager HTML UI, I find that it is only partially unpacked into the app dir. In particular, only the WEB-INF folder is there it contains only 1 file. If I unpack the uploaded WAR file by hand, it is fine I can load it myself into the app dir. Then all is good. Anyone seen this kind of behavior? -- Jonathan Rosenberg Founder Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat on Windows XP: WAR file not fully unpacked
2011/2/1 Jonathan Rosenberg j...@tabbysplace.org: I'm on Windows XP, local Tomcat running. Most of the time when I upload (from the local machine) a .war file via the Manager HTML UI, I find that it is only partially unpacked into the app dir. In particular, only the WEB-INF folder is there it contains only 1 file. If I unpack the uploaded WAR file by hand, it is fine I can load it myself into the app dir. Then all is good. Anyone seen this kind of behavior? 1. Anything in the logs? 2. Maybe there is no enough free space to write, besides a single file. 3. How do you unpack by hand? Do you use jar.exe? 4. The full version of Tomcat (x.y.z) and vendor and version of JVM = ? 5. What are attributes of Host element in server.xml ? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2
2011/2/1 André Warnier a...@ice-sa.com: Konstantin Kolinko wrote: 2011/2/1 Tom Kielty tom.kie...@calabrio.com: Konstantin, Thanks for the reply. I tried to look for a defect but must not have looked in the right place. It says this is a minor defect. Is there anyway to increase the priority as this is a problem when writing scripts to automatically restart Tomcat? It is possible to change the level, but I do not think that it is major issue [1] (there is no normal severity in this instance of JIRA), nor I think that that field matters anyway. It is worth adding a comment that it is observed not only in that environment where it was originally reported, or any other concerns. You may also want to have a look at this page : http://commons.apache.org/daemon/procrun.html and in particular at the entry about --StopTimeout Short explanation : the tomcat7.exe program is in fact a renamed copy of that procrun program. It is a wrapper which runs as a Windows Service, and itself runs the JVM which runs Tomcat. No guarantee, but playing around a bit with this parameter may just happen to solve your problem. I do not think that --StopTimeout will help here. The shutdown itself takes little time. After that the process just disappears, without reporting any progress info back to the system. See my comment in https://issues.apache.org/jira/browse/DAEMON-195 -- I think reconfiguring the service will solve the issue. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Shared context.xml on WIndows XP
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Shared context.xml on WIndows XP I solved my problem by defining some Contexts in server.xml Bad idea. Context elements should be in each webapp's META-INF/context.xml file, or in conf/Catalina/[host]/[appName].xml. Allowing them in server.xml is mostly there for compatibility with the bad old days. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat on Windows XP: WAR file not fully unpacked
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Tomcat on Windows XP: WAR file not fully unpacked I'm on Windows XP, local Tomcat running. Most of the time when I upload (from the local machine) a .war file via the Manager HTML UI, I find that it is only partially unpacked into the app dir. That's usually because Tomcat is unpacking it elsewhere, since Windows presents ugly locking problems. Look at the antiResourceLocking and antiJARLocking attributes of the Context element: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html However, you shouldn't ever depend on the .war file being unpacked, since there's no guarantee it will be. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: cannot access welcome page on Windows Server 2003 R2 SP2
From: Brett Delle Grazie [mailto:brett.dellegra...@gmail.com] Subject: Re: cannot access welcome page on Windows Server 2003 R2 SP2 On 1 February 2011 16:50, Philip Anil-QBW348 anil.phi...@motorolasolutions.com wrote: I found, using netstat, that process with pid 4 opened port 80. I killed the process tree from Task Manager and the system shut down saying it was a system critical process (DCOM). Might be malware... Are you referring to IIS? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache question
From: Lava Saleem [mailto:lnsal...@ualr.edu] Subject: apache question I have a simple question regarding apache Apache is a software organization. To quote from the home page: The ASF is made up of nearly 100 top level projects that cover a wide range of technologies. Chances are if you are looking for a rewarding experience in Open Source, you are going to find it here. I found out that I need to use apache httpd with tomcat Why do you think that? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
ssl application
Hello all... I have configured ssl on tomcat 7 and I am able to access my application via ssl and non-ssl. What I am trying to figure out is how to configure tomcat so that my application is only available via ssl. Is there a way to do this? I have read the tomcat 7 document on ssl, but, did not take note of anything indicating how to do this. Thanks Bob Jenkin This mail was sent via Mail-SeCure System.
Re: apache question
Hi Chuck, yeah I have read what you quote before but my question is that I need to set apache httpd as a proxy and I'm not sure if it buildin within the apache tomcat and what about the mod_jk do I need to download it ? On Tue, Feb 1, 2011 at 12:04 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Lava Saleem [mailto:lnsal...@ualr.edu] Subject: apache question I have a simple question regarding apache Apache is a software organization. To quote from the home page: The ASF is made up of nearly 100 top level projects that cover a wide range of technologies. Chances are if you are looking for a rewarding experience in Open Source, you are going to find it here. I found out that I need to use apache httpd with tomcat Why do you think that? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ssl application
While doing some SSL research last week, I stumbled on this: https://confluence.sakaiproject.org/display/DOC/Sakai+Admin+Guide+-+Advanced+Tomcat++%28and+Apache%29+Configuration If you wish to secure the entire tomcat installation (which can be done regardless of how you provide SSL), add the following to TOMCAT_HOME/conf/web.xml inside the web-app tags: !-- redirect all traffic to the SSL port -- security-constraint web-resource-collection web-resource-nameAutomatic SLL Forwarding/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint It worked for me (Linux, Tomcat 6.0.30, JRE 1.5.0_22). On Tue, Feb 1, 2011 at 1:31 PM, robert.jen...@surecomp.com wrote: Hello all... I have configured ssl on tomcat 7 and I am able to access my application via ssl and non-ssl. What I am trying to figure out is how to configure tomcat so that my application is only available via ssl. Is there a way to do this? I have read the tomcat 7 document on ssl, but, did not take note of anything indicating how to do this. Thanks Bob Jenkin This mail was sent via Mail-SeCure System. -- Hell hath no limits, nor is circumscrib'd In one self-place; but where we are is hell, And where hell is, there must we ever be --Christopher Marlowe, *Doctor Faustus* (v, 121-24)
RE: ssl application
Thad, Worked like a charm... thanks.. Sincerely, Robert Jenkin Surecomp Services, Inc. 2 Hudson Place, 4th Floor Hoboken, NJ 07030 Skype: robert.jenkin Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537 http://www.Surecomp.com -Original Message- From: Thad Humphries [mailto:thad.humphr...@gmail.com] Sent: Tuesday, February 01, 2011 1:38 PM To: Tomcat Users List Subject: Re: ssl application While doing some SSL research last week, I stumbled on this: https://confluence.sakaiproject.org/display/DOC/Sakai+Admin+Guide+-+Advanced+Tomcat++%28and+Apache%29+Configuration If you wish to secure the entire tomcat installation (which can be done regardless of how you provide SSL), add the following to TOMCAT_HOME/conf/web.xml inside the web-app tags: !-- redirect all traffic to the SSL port -- security-constraint web-resource-collection web-resource-nameAutomatic SLL Forwarding/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint It worked for me (Linux, Tomcat 6.0.30, JRE 1.5.0_22). On Tue, Feb 1, 2011 at 1:31 PM, robert.jen...@surecomp.com wrote: Hello all... I have configured ssl on tomcat 7 and I am able to access my application via ssl and non-ssl. What I am trying to figure out is how to configure tomcat so that my application is only available via ssl. Is there a way to do this? I have read the tomcat 7 document on ssl, but, did not take note of anything indicating how to do this. Thanks Bob Jenkin This mail was sent via Mail-SeCure System. -- Hell hath no limits, nor is circumscrib'd In one self-place; but where we are is hell, And where hell is, there must we ever be --Christopher Marlowe, *Doctor Faustus* (v, 121-24) This mail was sent via Mail-SeCure System.
Re: cannot access welcome page on Windows Server 2003 R2 SP2
On 2/1/2011 12:40 PM, Brett Delle Grazie wrote: Hi, On 1 February 2011 16:50, Philip Anil-QBW348 anil.phi...@motorolasolutions.com wrote: I found, using netstat, that process with pid 4 opened port 80. I killed the process tree from Task Manager and the system shut down saying it was a system critical process (DCOM). Might be malware... Yeah, that was my thought too. Unless there's some strange utility or service running, windows core services won't grab port 80. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: cannot access welcome page on Windows Server 2003 R2 SP2
Caldarale, Charles R wrote: From: Brett Delle Grazie [mailto:brett.dellegra...@gmail.com] Subject: Re: cannot access welcome page on Windows Server 2003 R2 SP2 On 1 February 2011 16:50, Philip Anil-QBW348 anil.phi...@motorolasolutions.com wrote: I found, using netstat, that process with pid 4 opened port 80. I killed the process tree from Task Manager and the system shut down saying it was a system critical process (DCOM). Might be malware... Are you referring to IIS? One could argue about that. Anil, when Chuck mentioned to get rid of it, he did not necessarily mean to use kill. The following command will show you exactly which process (PID and program) is using which port(s). The ones you should look at are the ones showing LISTEN in the column before last. netstat -aobn -p tcp - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Shared context.xml on WIndows XP
Hmmm ... what about if I put them in conf/Catalina/[host]/context.xml Will that work? -- Jonathan Rosenberg Founder Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org/ On Tue, Feb 1, 2011 at 12:57 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Shared context.xml on WIndows XP I solved my problem by defining some Contexts in server.xml Bad idea. Context elements should be in each webapp's META-INF/context.xml file, or in conf/Catalina/[host]/[appName].xml. Allowing them in server.xml is mostly there for compatibility with the bad old days. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Shared context.xml on WIndows XP
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Shared context.xml on WIndows XP Hmmm ... what about if I put them in conf/Catalina/[host]/context.xml That will specify attributes for a webapp named context. If you want those attributes to apply to all webapps for a given Host, the file should be in conf/Catalina/[host]/context.xml.default. If you want the attributes for a specific webapp, the location is conf/Catalina/[host]/[appName].xml, as stated before. Note that under no conditions are any of these Context elements allowed to have a path attribute, but they may have a docBase attribute if the webapp is located outside of the Host's appBase directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache question
Tomcat and HTTPD are separate entities. You will need to download and install both of them. Please review the documentation on using httpd to proxy to Tomcat and decide on which method you wish to use. Or ask your vendor. -Original Message- From: Lava Saleem [mailto:lnsal...@ualr.edu] Sent: Tuesday, February 01, 2011 12:35 PM To: users Subject: Re: apache question Hi Chuck, yeah I have read what you quote before but my question is that I need to set apache httpd as a proxy and I'm not sure if it buildin within the apache tomcat and what about the mod_jk do I need to download it ? On Tue, Feb 1, 2011 at 12:04 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Lava Saleem [mailto:lnsal...@ualr.edu] Subject: apache question I have a simple question regarding apache Apache is a software organization. To quote from the home page: The ASF is made up of nearly 100 top level projects that cover a wide range of technologies. Chances are if you are looking for a rewarding experience in Open Source, you are going to find it here. I found out that I need to use apache httpd with tomcat Why do you think that? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org __ Confidentiality Notice: This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: cannot access welcome page on Windows Server 2003 R2 SP2
That message sounds like IIS's default site page. Stop IIS if you don't need it for something else. If you do, you've got some reading thinking to do. -Original Message- From: Philip Anil-QBW348 [mailto:anil.phi...@motorolasolutions.com] Sent: Monday, January 31, 2011 5:53 PM To: users@tomcat.apache.org Subject: cannot access welcome page on Windows Server 2003 R2 SP2 Windows Server 2003 R2 SP2. Java 1.6.0.23. Tomcat 7.0.6 I ran the Windows Service installer on XP and was able to set up the server and bring up the Welcome page (http://localhost. I set default port to 80). I did the same on Windows Server 2003 R2 SP2 and it does not bring up the web page. I get Under Construction. The site you are trying to view does not have a default page. I ran the monitor and ensured that the server was started and tried to bring up the Welcome page - to no avail. Any help appreciated. __ Confidentiality Notice: This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: ssl application
From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] Subject: ssl application What I am trying to figure out is how to configure tomcat so that my application is only available via ssl. As I think we've mentioned several times over the past week or two, you really, really need to read the servlet spec (section 12.7, in this case). The Tomcat doc does not reiterate things that are in the servlet spec, since the expectation is that everyone using Tomcat has at least skimmed the spec. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Shared context.xml on WIndows XP
Makes sense, I think. For example, I removed the Context path='/images' ... from server.xml, created conf/Catalina/[host]/images.xml put the Context element in there, without the path attribute. Seems to be working fine, so I think I did it right? -- Jonathan Rosenberg Founder Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org/ On Tue, Feb 1, 2011 at 3:37 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Shared context.xml on WIndows XP Hmmm ... what about if I put them in conf/Catalina/[host]/context.xml That will specify attributes for a webapp named context. If you want those attributes to apply to all webapps for a given Host, the file should be in conf/Catalina/[host]/context.xml.default. If you want the attributes for a specific webapp, the location is conf/Catalina/[host]/[appName].xml, as stated before. Note that under no conditions are any of these Context elements allowed to have a path attribute, but they may have a docBase attribute if the webapp is located outside of the Host's appBase directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: cannot access welcome page on Windows Server 2003 R2 SP2
I tried to uninstall IIS (http://forums.aspfree.com/microsoft-iis-12/how-to-uninstall-iis-38783.h tml), .Net 2 framework etc. but strangely enough, it remained. So I did Start|Run|inetmgr and lo and behold, found Default Web Page camped out on port 80. I deleted it, and the Tomcat welcome page comes up just fine! :) -Original Message- From: David kerber [mailto:dcker...@verizon.net] Sent: Tuesday, February 01, 2011 12:43 PM To: users@tomcat.apache.org Subject: Re: cannot access welcome page on Windows Server 2003 R2 SP2 On 2/1/2011 12:40 PM, Brett Delle Grazie wrote: Hi, On 1 February 2011 16:50, Philip Anil-QBW348 anil.phi...@motorolasolutions.com wrote: I found, using netstat, that process with pid 4 opened port 80. I killed the process tree from Task Manager and the system shut down saying it was a system critical process (DCOM). Might be malware... Yeah, that was my thought too. Unless there's some strange utility or service running, windows core services won't grab port 80. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Shared context.xml on WIndows XP
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Shared context.xml on WIndows XP I removed the Context path='/images' ... from server.xml, created conf/Catalina/[host]/images.xml put the Context element in there, without the path attribute. Seems to be working fine, so I think I did it right? Looks good to me. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat shutdown
Hi Konstantin, I see... :-) Thanks a lot, János On Feb 1, 2011, at 11:39 AM, Konstantin Kolinko wrote: 2011/2/1 János Löbb janos.l...@yale.edu: It is Tomcat 6.0.29 on OSX 10.6.5. If I ssh to the machine and shutdown Tomcat and later boot it back again, all those components which are using AWT are not usable. However if I Apple Remote Desktop to the machine, open up Terminal there, shut down Tomcat and start it up, all AWT components will work just fine. Any good explanation ? Create $CATALINA_BASE/bin/setenv.sh with the following text CATALINA_OPTS=-Djava.awt.headless=true Google for java.awt.headless for more info, e.g. look here: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Optimize CPU Hogging Tomcat 6
On Tue, Feb 1, 2011 at 10:33 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: jan gestre [mailto:ipcopper...@gmail.com] Subject: Optimize CPU Hogging Tomcat 6 We have an Apache Tomcat 6 server (HA cluster using DRBD) that is hogging the CPU, this happens when there are simultaneous users accessing at the same time, which should be considered normal because they're only 30. How will I optimize Tomcat? Highly unlikely that you need to optimize Tomcat. Much more likely that you have a bug in your webapp. Take thread dumps and see who is spending time where. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - Chuck Hi Chuck, Here's a snippet of the thread dump using jstack: Deadlock Detection: No deadlocks found. Thread 12288: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Thread 12287: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Thread 12285: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Thread 12284: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Thread 12283: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Thread 12282: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Thread 12281: (state = BLOCKED) Error occurred during stack walking: Locked ownable synchronizers: - None Also, here's my catalina log: tail -f /web/tomcat/tomcat6/logs/catalina.2011-02-01.log Feb 1, 2011 10:19:04 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390) at java.net.ServerSocket.implAccept(ServerSocket.java:453) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) at java.lang.Thread.run(Thread.java:619) --- Regards, Jan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Optimize CPU Hogging Tomcat 6
From: jan gestre [mailto:ipcopper...@gmail.com] Subject: Re: Optimize CPU Hogging Tomcat 6 Here's a snippet of the thread dump using jstack: Nothing there of any interest; all the ones you showed weren't running and were therefore not contributing to the CPU usage. Also, here's my catalina log: Feb 1, 2011 10:19:04 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: Too many open files That looks like something you should take care of... Is your webapp opening files (or sockets) and failing to close them? Running out of fd numbers will normally be fatal, and is almost always due to bugs in a webapp. What's your exact Tomcat version, JDK/JRE level, and platform? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
need help with isapi and ntdll problem for windows 2008 R2/tomcat 6
Hello, We are running Tomcat 6.0.26 on Windows Server 2008 R2 Enterprise 64 Bit using IIS and isapi redirector version 1.2.30 (just upgraded to 1.2.31). The 6 months or so we have been using Tomcat have been plagued with intermittent periods crashes and instability. Specifically, tomcat requests are resulting in crashes and the application log shows numerous (over 1200) instances of error 1000: Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bd0eb Faulting module name: ntdll.dll, version: 6.1.7600.16385, time stamp: 0x4a5be02b Exception code: 0xc005 Fault offset: 0x0004d174 Faulting process id: 0x1254 Faulting application start time: 0x01cbc19aceedc9cd Faulting application path: c:\windows\system32\inetsrv\w3wp.exe Faulting module path: C:\Windows\SYSTEM32\ntdll.dll Report Id: 0d413cc2-2d8e-11e0-92d0-005056340288 We installed debug diag on the machine and opened a case with Microsoft since it seemed like it was a MS problem. After opening a case and sending MS several dump files for analysis we were told: We are failing during a call into isapi_redirect64. It appears to be passing a bad value for a critical section to NTDLL (0x`0003) which in turn is causing the Access Violation to occur. Here is the complete email response from MS with some of the data from the dumps: All of the dumps show the same issue: Child-SP RetAddr Call Site `019bd040 `7734d0a2 ntdll!RtlpWaitOnCriticalSection+0xb4 `019bd0f0 `6a6d1c41 ntdll!RtlEnterCriticalSection+0xab `019bd120 `6a6bd40c isapi_redirect64!jk_md5+0x1c1 `019bd150 `6a6ebbb7 isapi_redirect64!ajp_service+0xb4c `019bd1e0 `6a6c679a isapi_redirect64!uri_worker_map_open+0x2c7 `019bd240 07fe`f31bc540 isapi_redirect64!read_registry_init_data+0x89a `019be520 07fe`f31c4007 isapi!ProcessIsapiRequest+0x13c `019be580 07fe`f31bb421 isapi!W3_ISAPI_HANDLER::DoWork+0x4fb `019be690 07fe`f31bb964 isapi!RequestDoWork+0x40d `019be720 07fe`f3db2fa7 isapi!CIISHttpModule::OnExecuteRequestHandler+0x1c `019be760 07fe`f3db464e iiscore!NOTIFICATION_CONTEXT::RequestDoWork+0x233 `019be7a0 07fe`f3db4465 iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+0x17f `019be890 07fe`f3db5e56 iiscore!NOTIFICATION_CONTEXT::CallModules+0x25 `019be8e0 07fe`f3de51bd iiscore!W3_CONTEXT::DoWork+0x3a6 `019bec00 07fe`f3de55df iiscore!W3_MAIN_CONTEXT::StartNotificationLoop+0x5d `019bec30 07fe`f319551e iiscore!W3_CONTEXT::ExecuteRequest+0x2bf `019becb0 07fe`f3191060 filter!RequestDoWork+0x40be `019bf360 07fe`f3db6ac1 filter!CIISHttpModule::OnPostAuthenticateRequest+0x20 `019bf3a0 07fe`f3db464e iiscore!NOTIFICATION_CONTEXT::RequestDoWork+0x20a `019bf3e0 07fe`f3db4465 iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+0x17f `019bf4d0 07fe`f3db593d iiscore!NOTIFICATION_CONTEXT::CallModules+0x25 `019bf520 07fe`f3db8ede iiscore!W3_CONTEXT::DoWork+0x326 `019bf840 07fe`f3da10d2 iiscore!W3_MAIN_CONTEXT::OnNewRequest+0x1ea `019bf870 07fe`f3da109c w3dt!UL_NATIVE_REQUEST::DoWork+0x126 `019bf8d0 07fe`f4581fba w3dt!OverlappedCompletionRoutine+0x1c `019bf900 07fe`f4582024 w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x7a `019bf950 07fe`f45820a1 w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x34 `019bf980 `770ff56d w3tp!THREAD_MANAGER::ThreadManagerThread+0x61 `019bf9b0 `77333281 kernel32!BaseThreadInitThunk+0xd `019bf9e0 ` ntdll!RtlUserThreadStart+0x1d We are failing during a call into isapi_redirect64. It appears to be passing a bad value for a critical section to NTDLL (0x`0003) which in turn is causing the Access Violation to occur. This is a TomCat redirector from the Apache Foundation: 0:004 lmvm isapi_redirect64 start end module name `6a6b `6a714000 isapi_redirect64 (export symbols) isapi_redirect64.dll Loaded symbol image file: isapi_redirect64.dll Image path: D:\isapiRedirect\isapi_redirect64.dll Image name: isapi_redirect64.dll Timestamp:Thu Sep 09 18:04:53 2010 (4C895A05) CheckSum: 00062701 ImageSize:00064000 File version: 1.2.30.0 Product version: 1.2.30.0 File flags: 0 (Mask 3F) File OS: 40004 NT Win32 File type:1.0 App File date:. Translations: 0409.04b0 CompanyName: Apache Software Foundation ProductName: Apache Tomcat Connectors project InternalName: isapi_redirect-1.2.30 OriginalFilename: isapi_redirect-1.2.30.dll ProductVersion:
Re: cannot access welcome page on Windows Server 2003 R2 SP2
Philip Anil-QBW348 wrote: I tried to uninstall IIS (http://forums.aspfree.com/microsoft-iis-12/how-to-uninstall-iis-38783.h tml), .Net 2 framework etc. but strangely enough, it remained. So I did Start|Run|inetmgr and lo and behold, found Default Web Page camped out on port 80. I deleted it, and the Tomcat welcome page comes up just fine! :) It's nice that you solved your main problem, but what you write above does not make much technical sense. A default web page does not camp on any particular port. And deleting a web page does not stop a webserver from running. Maybe it is MS's brain-dead way of presenting things that gets you confused. The underlying fact is : two separate processes cannot open the same listening port on the same host. When one process opens that listening port (80 in this case), any other process that tries to open the same one will fail. If Tomcat is now running fine and listening on port 80, it means that whatever you did above, was really stop IIS from running and opening port 80 first. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat datasource definitions - shared vs individual
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html says Any nested elements, e.g. Resource elements, that are defined in a default Context will be created once for each Context to which the default applies. They will not be shared between Context elements. Default contexts: $CATALINA_BASE/conf/context.xml $CATALINA_BASE/conf/[engine]/[host]/context.xml.default http://tomcat.apache.org/tomcat-7.0-doc/config/globalresources.html#Resource_Definitions describes how to define a database pool that is shared across all Contexts (define the Resource / within GlobalNamingResources / within $CATALINA_BASE/conf/server.xml). Is there any way to define a global database pool without touching server.xml? Thanks! --Jason This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
Re: OutOfMemory issue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aparna, On 2/1/2011 8:27 AM, Aparna1 V wrote: Yes, we were on jdk 1.4 and now we have moved to 1.6. After this, we were facing the BufferOverFlow on this particular page so we increased the buffer size to 4 MB ( yes .. 4 MiB). What buffer is overflowing? Is it Tomcat-related? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1IkQ0ACgkQ9CaO5/Lv0PAnAgCgoEj07rP28uxu+87Ym8IxwLf6 scoAnjyYHijO5vNEoSPI6+93zNuSzGx+ =6qP5 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat datasource definitions - shared vs individual
From: Jason Pringle [mailto:jason.prin...@amdocs.com] Subject: tomcat datasource definitions - shared vs individual Is there any way to define a global database pool without touching server.xml? Don't think so. Sounds like a reasonable enhancement request (which would have more chance of going in if accompanied by a patch). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Jasper Compiling Error - return type incompatible with JspSourceDependent.getDependants
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 2/1/2011 7:59 AM, Kupper ext-FA, Thomas wrote: And yes, we did upgrade from RHEL5.5 to RHEL5.6 and the tomcat packages were upgrade. But since compiling did'nt work before I'm not sure what the impact of this update is. Getting rid of the 'work' directory is probably my best bet right now. I don't think Tomcat likes being upgraded while a webapp is deployed. It's best to undeploy the app (which is essentially deleting the work directory), then upgrade Tomcat, then re-deploy the webapp. Tomcat (of course) compiles your JSP files on the fly and might not try to re-compile them if it doesn't think they need to be re-compiled (it just checks file dates). I don't believe Tomcat keeps any version information in the generated .java/.class files so it will blindly run old versions that reference internal APIs that may have changed. That's the most likely reason you are encountering this problem. I'll give that a go as soon as I got a service window and let you know. If your pages are failing every time, I think that's grounds for an emergency service window to suddenly open :) Well, I haven't done any precompilation yet. I was just wondering if that might help pin-down the problem. Unfortunately I'm not a developer but a server admin and have no clue how a build.xml should look like that ca 'simulate' a Tomcat/Jasper precompiling. You can simulate the JSP compilation using the JSP precompiler, but I suspect that things will work properly and you won't get any useful information from the exercise. You could demonstrate that the new version of Tomcat you have in production /is capable/ of compiling those files properly... that might be a nice thing to show management. Also, your version of Tomcat is very old. If you are using a package-managed version of Tomcat, you may be stuck with an ancient version. Consider using the canonical Apache version to stay up-to-date. The version we use is the stock Tomcat for RHEL5. For now I'm stuck with that version. :( You should complain to RH, especially if you are an enterprise customer. You need to tell them that they are seriously out of date. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1IknUACgkQ9CaO5/Lv0PB/3ACgnsuxp+q5Z2zADNLcwUSy5Gx3 kYkAni4U5dw2M0AmBuOLeDlV2nXxsWGn =iZMQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: successful deployment of web services on Tomcat 7 [was: follow-up on delpoying a war and starting application]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 2/1/2011 9:17 AM, robert.jen...@surecomp.com wrote: I have a war file that is produced by the Oracle version of Eclipse and the created war file works with Websphere and WebLogic. I have been attempting to deploy this war file in Tomcat 7. After receiving some helpful advice from this mail group I have been able to deploy the application. Thanks for the help folks. Excellent. Thanks for circling back to report your success and how you ended up configuring things. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1IlBEACgkQ9CaO5/Lv0PAtjACgrCUJWB0lOf5aHgXj7zjkO79q NCwAoKqngsXvvu2anj7L+zU3izBQLkj0 =mhHo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache as a front end for a Tomcat application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 2/1/2011 8:40 AM, James Godrej wrote: On lan I am able to correctly see it but from internet things are not working. Can you be more specific? What does not working mean? I tried understanding mod_jk page but I was unable to get to the correct settings. apache vhost can be read here http://pastebin.com/L32D6ii5 You are not using mod_jk so the mod_jk page won't help. Your configuration shows that you are using mod_proxy_http which proxies HTTP and does not use AJP at all. following is the application I am trying to get up and running https://confluence.sakaiproject.org/display/DOC/Sakai+2.7 (the binary version of above page). On lan it is accessible http://192.168.1.4:8080/portal perfectly but from internet I am not clear as what is wrong with it. My immediate thoughts are: 1. IP 192.168.1.4 is in a non-routable IP space. That means that you will always be referring to a machine on the local network. You need to use the IP address of the actual server (or some other device that forwards appropriately). 2. Port 8080 is unlikely to be open on your firewall to the outside world unless you explicitly open it. Something tells me your httpd/Tomcat configuration is fine: it's a networking problem you'll have to overcome. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1Ik1oACgkQ9CaO5/Lv0PA/gwCff7RUaHDLbH2eOQ6RH7k2E7ei eeYAoIHHyeJxeIOIBRsJItOC763s9xxn =XJix -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: help setting up connection pool with sql server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 2/1/2011 11:32 AM, robert.jen...@surecomp.com wrote: Update: problem found and corrected.. now working... caused by a leading space in the url setting url= jdbc:sqlserver://allmatch-test:1433;databaseName=system; Oops. Update: I have amended the code not to supply a username/password to getConnection since it is not supported. Filip recently applied a patch that allows a username and password to be supplied. Here's the BZ entry: https://issues.apache.org/bugzilla/show_bug.cgi?id=49543 I have gotten past that point. But now it is reporting the following; org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla ss 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL ' jdbc:sqlserv er://allmatch-test:1433;databaseName=system;' Looks like that space is still there. Try re-deploying your webapp completely. If you don't know what that means, then to this: 1. Stop Tomcat 2. Delete the CATALINA_BASE/work directory 3. Delete any files like CATALINA_BASE/conf/[service]/[engine]/[yourweapp].xml 4. Re-start Tomcat Tomcat will copy your META-INF/context.xml file into CATALINA_BASE/conf/[service]/[engine]/[yourweapp].xml during deployment and cache it even if you update the WAR file. This is entirely intentional and allows system administrators to specify configuration that overrides that contained within the WAR file. the following jar was added to tomcat\lib prior to starting tomcat sqljdbc.jar - which is the Microsoft sql server driver That's right where it should be. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1IlV4ACgkQ9CaO5/Lv0PBWHQCgxF3bReVYroOBepJV2g4QK5Aj x5YAnRE7kSAbNZeDP9zuiwGla17cu3b0 =en2g -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: help setting up connection pool with sql server
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: help setting up connection pool with sql server Filip recently applied a patch that allows a username and password to be supplied. Here's the BZ entry: https://issues.apache.org/bugzilla/show_bug.cgi?id=49543 Note that the above is for the new Tomcat JDBC pool, not the standard renamed commons-dbcp that Robert J is using. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: tomcat datasource definitions - shared vs individual
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, February 01, 2011 3:08 PM To: Tomcat Users List Subject: RE: tomcat datasource definitions - shared vs individual From: Jason Pringle [mailto:jason.prin...@amdocs.com] Subject: tomcat datasource definitions - shared vs individual Is there any way to define a global database pool without touching server.xml? Don't think so. Sounds like a reasonable enhancement request (which would have more chance of going in if accompanied by a patch). - Chuck Figured that was the case, but sometimes you get lucky :) If such a thing existed, what would be a reasonable location for the Resource / definitions? Perhaps a file $CATALINA_BASE/conf/global.resources.xml? This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to serve .net and java websites on Windows 2008 with IIS7 and Tomcat
Hi, We are trying to setup a webserver that will serve multiple aspx (..Net) websites and and jsp (Java) websites. The webserver is a Windows 2008 R2 64 bit machine with IIS7. I have also installed Tomcat 6.0.30 running as a service. The sample web application works with no problem on http://localhost:8080 Multiple IP addresses have been created on the webserver, so that each IP address will be used for one website. All websites should be running on port 80, regardless if aspx website or jsp website. I believe to achieve this, we need to use the Tomcat connector for IIS, so that IIS will take the request and forward to Tomcat to server jsp pages. I have gone through http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html and http://www.iisadmin.co.uk/?p=72 and successfully got IIS7 to pass request to Tomcat and served the sample jsp pages on port 80. Then I'm stuck... It seems like the Tomcat service only serves applications from one location ($CATALINA_HOME) But we don't want to run the website as www.ourserver.com/website1 www.ourserver.com/website2 Instead, we need to run them as www.website1.com www.website2.com which is why we have created multiple IP addresses on the server. And the jsp websites will sit in seperate physical folders on the server, for example: C:\website1\ C:\website2\ I've tried to play around with workers.properties, uriworkermap.properties, but without success. I think there's something to do with $CATALINA_BASE that I need to configure, but I don't know how. So now I beg to know exactly what and how to configure for both jsp websites to be served by the Tomcat service, receiving request from IIS7. If you can give as much detail as possible or point me to any websites that have detailed information on this matter, I am forever greatful. Regards and thanks Conway
Re: help setting up connection pool with sql server
On 01/02/2011 16:23, robert.jen...@surecomp.com wrote: url= jdbc:sqlserver://allmatch-test:1433;databaseName=system; Try removing the space at the start of the connection url Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to serve .net and java websites on Windows 2008 with IIS7 and Tomcat
A simple answer to your question is to create additional Host entries to your Tomcat server.xml file. While I know that there are some on this list who disagree with this method, I personally find that configuring hosts and contexts in the server.xml file very simple as it makes adding new hosts to Tomcat similar to adding new hosts in Apache. For example, you can add the following to your server.xml file: Host name=[ENTER DOMAIN NAME] appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=[ENTER SYSTEM PATH] / Alias[ENTER ALTERNATE DOMAINS]/Alias /Host or... more specifically: Host name=ourserver.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=C:\website1\ / Aliaswww.ourserver.com/Alias /Host And Tomcat will now know how to resolve each domain to it's own directory rather then inside the ROOT webapp. There are other ways to configure contexts, which I'm sure folks will post about subsequently, but I've found this works quite well and whether it's the proper way to do it or not, it will solve your problem. -Jordan On 02/01/2011 04:38 PM, Conway Liu wrote: Hi, We are trying to setup a webserver that will serve multiple aspx (..Net) websites and and jsp (Java) websites. The webserver is a Windows 2008 R2 64 bit machine with IIS7. I have also installed Tomcat 6.0.30 running as a service. The sample web application works with no problem on http://localhost:8080 Multiple IP addresses have been created on the webserver, so that each IP address will be used for one website. All websites should be running on port 80, regardless if aspx website or jsp website. I believe to achieve this, we need to use the Tomcat connector for IIS, so that IIS will take the request and forward to Tomcat to server jsp pages. I have gone through http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html and http://www.iisadmin.co.uk/?p=72 and successfully got IIS7 to pass request to Tomcat and served the sample jsp pages on port 80. Then I'm stuck... It seems like the Tomcat service only serves applications from one location ($CATALINA_HOME) But we don't want to run the website as www.ourserver.com/website1 www.ourserver.com/website2 Instead, we need to run them as www.website1.com www.website2.com which is why we have created multiple IP addresses on the server. And the jsp websites will sit in seperate physical folders on the server, for example: C:\website1\ C:\website2\ I've tried to play around with workers.properties, uriworkermap.properties, but without success. I think there's something to do with $CATALINA_BASE that I need to configure, but I don't know how. So now I beg to know exactly what and how to configure for both jsp websites to be served by the Tomcat service, receiving request from IIS7. If you can give as much detail as possible or point me to any websites that have detailed information on this matter, I am forever greatful. Regards and thanks Conway - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Optimize CPU Hogging Tomcat 6
On Wed, Feb 2, 2011 at 6:26 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: jan gestre [mailto:ipcopper...@gmail.com] Subject: Re: Optimize CPU Hogging Tomcat 6 Here's a snippet of the thread dump using jstack: Nothing there of any interest; all the ones you showed weren't running and were therefore not contributing to the CPU usage. Also, here's my catalina log: Feb 1, 2011 10:19:04 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: Too many open files That looks like something you should take care of... Is your webapp opening files (or sockets) and failing to close them? Running out of fd numbers will normally be fatal, and is almost always due to bugs in a webapp. What's your exact Tomcat version, JDK/JRE level, and platform? hi chuck, Tomcat's version is 6.0.29, Sun Java JDK 1.6.0_21 and RHEL5, webapp is Alfresco. Regards, Jan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to serve .net and java websites on Windows 2008 with IIS7 and Tomcat
Hi, if I understand your issue right, you want to put the URL into the mapping in the URIworkermapping properties instead of /someApp1|/*=worker1 /someApp2|/*=worker2 you write /app1.you.com|/*=worker1 /app2.you.com|/*=worker2 This way, you can address the tomcat workers with different domains, resolved by the IIS. Works also with IIS as an SSL filter. Regards, Thomas Am 02.02.2011 um 01:38 schrieb Conway Liu: Hi, We are trying to setup a webserver that will serve multiple aspx (..Net) websites and and jsp (Java) websites. The webserver is a Windows 2008 R2 64 bit machine with IIS7. I have also installed Tomcat 6.0.30 running as a service. The sample web application works with no problem on http://localhost:8080 Multiple IP addresses have been created on the webserver, so that each IP address will be used for one website. All websites should be running on port 80, regardless if aspx website or jsp website. I believe to achieve this, we need to use the Tomcat connector for IIS, so that IIS will take the request and forward to Tomcat to server jsp pages. I have gone through http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html and http://www.iisadmin.co.uk/?p=72 and successfully got IIS7 to pass request to Tomcat and served the sample jsp pages on port 80. Then I'm stuck... It seems like the Tomcat service only serves applications from one location ($CATALINA_HOME) But we don't want to run the website as www.ourserver.com/website1 www.ourserver.com/website2 Instead, we need to run them as www.website1.com www.website2.com which is why we have created multiple IP addresses on the server. And the jsp websites will sit in seperate physical folders on the server, for example: C:\website1\ C:\website2\ I've tried to play around with workers.properties, uriworkermap.properties, but without success. I think there's something to do with $CATALINA_BASE that I need to configure, but I don't know how. So now I beg to know exactly what and how to configure for both jsp websites to be served by the Tomcat service, receiving request from IIS7. If you can give as much detail as possible or point me to any websites that have detailed information on this matter, I am forever greatful. Regards and thanks Conway -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Optimize CPU Hogging Tomcat 6
Jan, The limit of open files on linux/unix systems for normal users may be quite low by default (for example 1024). From my experience, this may lead to Too many open files errors during high load even if your application is working fine. Try increasing this limit, also check your application as Chuck suggested. -- Olaf 2011/2/2 jan gestre ipcopper...@gmail.com: On Wed, Feb 2, 2011 at 6:26 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: jan gestre [mailto:ipcopper...@gmail.com] Subject: Re: Optimize CPU Hogging Tomcat 6 Here's a snippet of the thread dump using jstack: Nothing there of any interest; all the ones you showed weren't running and were therefore not contributing to the CPU usage. Also, here's my catalina log: Feb 1, 2011 10:19:04 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: Too many open files That looks like something you should take care of... Is your webapp opening files (or sockets) and failing to close them? Running out of fd numbers will normally be fatal, and is almost always due to bugs in a webapp. What's your exact Tomcat version, JDK/JRE level, and platform? hi chuck, Tomcat's version is 6.0.29, Sun Java JDK 1.6.0_21 and RHEL5, webapp is Alfresco. Regards, Jan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
how to refresh connection pool before it gets completely busy
Dear All, We are facing connection pool busy problem in tomcat 6.0.29. Till we finalize our investigation, we need connection pool to be refreshed before all connections get busy. Say for example if we have connection pool size 60, then it should get refresh when 15 connections get busy. We know that we cannot define connection pool should refresh after X connections get busy but we can at least define the timeout for an abandoned connections. We have tried this using the removeAbandonedTimeout property, but still its behaviour is that it refreshes the pool when all connections get busy. Following is the entry of our context.xml file: Resource factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory auth=Application removeAbandoned=true logAbandoned=true removeAbandonedTimeout=120 validationQuery=select 1 driverClassName=net.sourceforge.jtds.jdbc.Driver maxActive=60 maxIdle=20 maxWait=1 name=DB_Pool type=javax.sql.DataSource url=jdbc:jtds:sqlserver://10.22.4.30/XYZ / Can anyone help how we can achieve this , that connection pool refreshes before all connections get busy? Regards, David
Re: OutOfMemory issue
JSP buffer over flow From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Date: 02/02/2011 04:33 AM Subject: Re: OutOfMemory issue -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aparna, On 2/1/2011 8:27 AM, Aparna1 V wrote: Yes, we were on jdk 1.4 and now we have moved to 1.6. After this, we were facing the BufferOverFlow on this particular page so we increased the buffer size to 4 MB ( yes .. 4 MiB). What buffer is overflowing? Is it Tomcat-related? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1IkQ0ACgkQ9CaO5/Lv0PAnAgCgoEj07rP28uxu+87Ym8IxwLf6 scoAnjyYHijO5vNEoSPI6+93zNuSzGx+ =6qP5 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you