Re: Cluster Not Syncing After Restart
Hi David, you can't restart your nodes so quickly. As you shutdown one node you must wait 30-45 sec before next restart. Don't restart both nodes at same time. Peter Am 17.01.2008 um 02:25 schrieb David Rees: I'm running a Tomcat 5.5.25 cluster with 2 nodes and the following cluster configuration in the Host/ element: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.* \.css;.*\.txt;/ Valve className=org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinder Listener/ /Cluster Every night, I restart the two nodes of the cluster, one at a time, using a standard shutdown with a processing monitoring Tomcat to start it back up automatically after it has exited (daemontools for those interested). But after restarting the first node, it does not rejoin the cluster. In the logs of node 1 are this (node was shut down at 04:30): 2008-01-17 04:30:07,212 INFO : SimpleTcpCluster: Cluster is about to start 2008-01-17 04:30:07,317 INFO : SimpleTcpCluster: Add Default ClusterReceiver at cluster localhost 2008-01-17 04:30:07,326 INFO : SimpleTcpCluster: Add Default ClusterSender at cluster localhost 2008-01-17 04:30:07,341 INFO : SocketReplicationListener: Open Socket at [10.1.1.5:8015] 2008-01-17 04:30:07,363 ERROR: ClusterListener: Context manager doesn't exist: ^^^ That line repeats ~25,000 times for a couple seconds 2008-01-17 04:30:10,110 ERROR: ClusterListener: Context manager doesn't exist: 2008-01-17 04:30:11,443 INFO : McastService: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) 2008-01-17 04:30:11,790 INFO : DeltaManager: Starting clustering manager...: 2008-01-17 04:30:11,790 INFO : DeltaManager: Register manager to cluster element Host with name localhost 2008-01-17 04:30:11,790 INFO : DeltaManager: Starting clustering manager at 2008-01-17 04:30:11,794 WARN : DeltaManager: Manager [], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp:// 10.1.1.6:8015,catalina,10.1.1.6,8015, alive=86161577]. This operation will timeout if no session state has been received within 60 seconds. 2008-01-17 04:30:21,894 ERROR: DeltaManager: Manager []: No session state send at 17/01/08 04:30 received, timing out after 10,102 ms. While node 1 is shutting down, ~4000 messages like this are generated on node 2: 2008-01-17 04:30:06,233 WARN : FastAsyncSocketSender: Unable to asynchronously send session with id=[x.c-web2-1200438737718] - message will be ignored. java.lang.NullPointerException at org.apache.catalina.cluster.tcp.DataSender.pushMessage (DataSender.java:1057) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender $FastQueueThread.pushQueuedMessages(FastAsyncSocketSender.java:524) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender $FastQueueThread.run(FastAsyncSocketSender.java:487) 2008-01-17 04:30:06,235 WARN : FastAsyncSocketSender: Unable to asynchronously send session with id=[x.c-web2-1200438739053] - message will be ignored. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java: 333) at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.apache.catalina.cluster.tcp.DataSender.createSocket (DataSender.java:897) at org.apache.catalina.cluster.tcp.DataSender.openSocket (DataSender.java:866) at org.apache.catalina.cluster.tcp.DataSender.pushMessage (DataSender.java:1009) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender $FastQueueThread.pushQueuedMessages(FastAsyncSocketSender.java:524) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender $FastQueueThread.run(FastAsyncSocketSender.java:487) These stop after about 1 second (last one at 04:30:07.340), and then a decent number of Send stats lines are then printed on node 2: 2008-01-17 04:30:07,376 INFO : DataSender: Send stats from [10.1.1.5:8,015], Nr of bytes sent=20,441,242 over 26,000 = 786 bytes/request, processing time 58,669,413 msec, avg processing time 2,257 msec !-- More lines similar to the above and below -- 2008-01-17 04:30:10,053 INFO : DataSender: Send stats from [10.1.1.5:8,015], Nr of bytes sent=39,242,737 over 50,000 = 784 bytes/request, processing time 58,672,059 msec, avg processing time 1,173 msec When node 2 restarts a couple minutes later, it is
Re: Cluster Not Syncing After Restart
On Jan 17, 2008 12:16 AM, Peter Rossbach [EMAIL PROTECTED] wrote: you can't restart your nodes so quickly. As you shutdown one node you must wait 30-45 sec before next restart. Don't restart both nodes at same time. I am waiting at 4 minutes before restarting node 2 before restarting node 1, so that is not the problem in this case. The sequence goes like this: 04:30: Shut down node 1, it gets restarted automatically immediately after it has completely shut down (typically within 10 seconds). 04:34: Shut down node 2, it gets restarted automatically immediately after it has completely shut down (typically within 10 seconds). -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I speed up and reduce load of initialization
How big is your main memory? Compiling (both source JIT) consumes lots of memory. If your main memory is small, it can take a lot of initialization time! Gavan Hood wrote: My web app is very simple, two servlets already installed so no war file. Once it finally gets going it is very responsive, the initialization just takes forever... -- View this message in context: http://www.nabble.com/How-can-I-speed-up-and-reduce-load-of-initialization-tp14857523p14914576.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 embedded use - problems with jsp - No Java compiler available
Hi, I found a first hint on my own - it is probably related to setting-up jasper correctly - but I hope someone can tell me how to set the parameter for jasper in embedded mode. What I did was: // Create a handler for jsps Wrapper jspServlet = context.createWrapper(); jspServlet.setName(jsp); jspServlet.setServletClass(org.apache.jasper.servlet.JspServlet); jspServlet.addInitParameter(fork, false); jspServlet.addInitParameter(xpoweredBy, false); jspServlet.setLoadOnStartup(2); context.addChild(jspServlet); context.addServletMapping(*.jsp, jsp); context.addServletMapping(*.jspx, jsp); But it seams not enough for embedded mode. I think I have to set also classpath , compiler ,compilerSourceVM , compilerTargetVM. But I do not know where to point them in embedded mode ??? Is there somebody who can help me on this ? Thx. -- View this message in context: http://www.nabble.com/Tomcat-6-embedded-use---problems-with-jsp---No-Java-compiler-available-tp14881179p14915285.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
Thanks Chuck, for pointing me to this. I'm just starting with tomcat and did not take a look at the \bin directory, where the tomcat-juli.jar should have jumped into my face .. :o) Caldarale, Charles R wrote: From: olk [mailto:[EMAIL PROTECTED] Subject: java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory The org.apache.catalina.core.StandardService has an import org.apache.juli.logging.LogFactory, but the org.apache.juli in the catalina.jar of apache-tomcat-6.0.14 is empty ? there is no LogFactory.class file. The org.apache.juli.logging.LogFactory class is in tomcat-juli.jar, not catalina.jar. For a non-embedded environment, the tomcat-juli.jar (along with several others) is specified as a classpath extension in the manifest of bootstrap.jar; don't know how it should work in an embedded environment. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-apache-juli-logging-LogFactory-tp14875983p14915338.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I speed up and reduce load of initialization
I agree it will take time, i have 64MB of ram. I guess dotnets ability to compile on install would be useful here... i don't think there is an equivalent for java especially 1.4.2 that I am running. Has there been any progress on that in recent times ? If there is that would be great... I notice that on running it is causing a lot of swapping to occur, my swapping process is using a lot of time. I really want to get this to work as functionaly it is great, is there any way to trim back what is included / compiled / swapped beyond the server config file that I am using. Jonadan [EMAIL PROTECTED] wrote: How big is your main memory? Compiling (both source JIT) consumes lots of memory. If your main memory is small, it can take a lot of initialization time! Gavan Hood wrote: My web app is very simple, two servlets already installed so no war file. Once it finally gets going it is very responsive, the initialization just takes forever... -- View this message in context: http://www.nabble.com/How-can-I-speed-up-and-reduce-load-of-initialization-tp14857523p14914576.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Failover not happening
hi, In my cluster failover is not happening. I am gettitng 503 after shuttng down the main server. Attaching the log files .. can anyone say why this is happening ? (See attached file: staging1_2)(See attached file: Staging2_1) It is urgent pls help. I have checked all my settings and they seem to be correct. Is it that session replication is not happening becoz of some machine settings ? Multicast not supported or something like that ? Regards, Shiby - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 cluster
Holy smokes! I didn't even see that. Thanks for better at reading than me. :( -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 4:53 PM To: Tomcat Users List Subject: Re: Tomcat 6 cluster it would be very strange to how the cluster would have anything to do with this :) the error you are getting is: Caused by: java.net.UnknownHostException: lexecfin the JDBC driver is unable to resolve that name, put the name in your hosts file, or put the IP address instead of hostname for the jdbc connection and try again Filip Hehl, Thomas wrote: I've built tomcat 5 and 5.5 single servers a lot, but now I'm trying to build a tomcat 6 cluster for testing. The docs seem pretty straightforward (just uncomment the Cluster line) and I've followed it, but I'm getting errors. The error looks like: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Can't load driver java.lang.reflect.InvocationTargetException) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource .java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja va:880) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConn ection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (LocalSessionFactoryBean.java:805) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFacto ry(LocalSessionFactoryBean.java:745) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertie sSet(AbstractSessionFactoryBean.java:134) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1167) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab stractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi ngleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv eReference(BeanDefinitionValueResolver.java:267) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv eValueIfNecessary(BeanDefinitionValueResolver.java:110) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:423) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab stractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi ngleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv eReference(BeanDefinitionValueResolver.java:267) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv eValueIfNecessary(BeanDefinitionValueResolver.java:110) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java:857) at
solved -- missing jasper-jdt.jar
I was missing the jasper-jdt.jar which caused the message !! olk wrote: Hi, I'm running tomcat in embedded mode from an applet. When I open a html page the embedded server responds correct. When I call a jsp I get the error java.lang.IllegalStateException: No Java compiler available below. Does maybe someone know what the reason could be ? - or point me to a good documentation for the embedded use of tomcat 6 ? Thx. INFO: Starting tomcat server Jan 16, 2008 12:10:23 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Jan 16, 2008 12:10:23 PM org.apache.catalina.startup.ContextConfig defaultWebConfig INFO: No default web.xml Jan 16, 2008 12:10:24 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jan 16, 2008 12:10:24 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jan 16, 2008 12:10:48 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: No Java compiler available at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) -- View this message in context: http://www.nabble.com/Tomcat-6-embedded-use---problems-with-jsp---No-Java-compiler-available-tp14881179p14918590.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what could be possibly wrong with my admin.xml and manager.xml files?
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ // __ These are my admin.xml and manager.xml files ~ !-- Context configuration file for the Tomcat Manager Web App $Id: manager.xml 287893 2002-04-08 17:46:08Z craigmcc $ -- Context path=/manager docBase=Z:\BEGIN\ESL\RLopez\GWB\tc-4.1.36_00\server\webapps\manager debug=4 privileged=true !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ Logger className=org.apache.catalina.logger.FileLogger directory=Z:\BEGIN\ESL\RLopez\GWB\prjx\logs prefix=tc-4.1.36_localhost_manager_log. suffix=.txt timestamp=true/ /Context ~ !-- Context configuration file for the Tomcat Administration Web App $Id: admin.xml 288428 2002-07-23 12:12:15Z remm $ -- Context path=/admin docBase=Z:\BEGIN\ESL\RLopez\GWB\tc-4.1.36_00\server\webapps\admin debug=4 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). -- Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1,bkbegin-04/ Logger className=org.apache.catalina.logger.FileLogger directory=Z:\BEGIN\ESL\RLopez\GWB\prjx\logs prefix=tc-4.1.36_localhost_admin_log. suffix=.txt timestamp=true/ /Context ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ // __ These are the types pf errors I am getting ~ 2008-01-16 16:52:52 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2008-01-16 16:52:54 StandardHost[localhost]: ContainerBase.addChild: start: LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3701) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:777) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:538) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:663) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:217) at org.apache.commons.digester.Rule.end(Rule.java:253) at org.apache.commons.digester.Digester.endElement(Digester.java:1222) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1765) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:339) at org.apache.catalina.core.StandardHost.install(StandardHost.java:762) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:439) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:373) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:785) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:331) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1156) at org.apache.catalina.core.StandardHost.start(StandardHost.java:697) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1148) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2213) at org.apache.catalina.startup.Catalina.start(Catalina.java:459) at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
Automatic Thread Dump configuration
Tomcat Users, I have been googling Tomcat thread dumps and have not seen what I want to accomplish anywhere... Is there a way to configure Tomcat to execute a thread dump whenever there is an Out Of Memory issue or if an app reached the max thread count? I am using Tomcat 5.5.25 on RHEL 5. with jdk1.5.0_13 Thanks for the help, Chad
Re: How can I speed up and reduce load of initialization
How big is your Java heap? And how much of your 64MB is used by other (non-Tomcat) processes? If Tomcat is causing a lot of virtual memory swapping, it *may* help to decrease the size of the heap so it fits into main memory. But that may make the heap too small, so garbage collection becomes a problem or Tomcat runs out of memory entirely. It depends on how much free memory you have and how much Tomcat + your app needs. -- Len On Jan 17, 2008 5:12 AM, Gavan Hood [EMAIL PROTECTED] wrote: I agree it will take time, i have 64MB of ram. I guess dotnets ability to compile on install would be useful here... i don't think there is an equivalent for java especially 1.4.2 that I am running. Has there been any progress on that in recent times ? If there is that would be great... I notice that on running it is causing a lot of swapping to occur, my swapping process is using a lot of time. I really want to get this to work as functionaly it is great, is there any way to trim back what is included / compiled / swapped beyond the server config file that I am using. Jonadan [EMAIL PROTECTED] wrote: How big is your main memory? Compiling (both source JIT) consumes lots of memory. If your main memory is small, it can take a lot of initialization time! Gavan Hood wrote: My web app is very simple, two servlets already installed so no war file. Once it finally gets going it is very responsive, the initialization just takes forever... -- View this message in context: http://www.nabble.com/How-can-I-speed-up-and-reduce-load-of-initialization-tp14857523p14914576.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 - Cluster error.
Hi, I repost the problem with a better subject: We had a tomcat 5.0.28 server configured with 2 clustered instances(working perfectly), and we decided to migrate to java6 and the new tomcat 6.0.14. We modified the configuration files to match the new tomcat 6.0.14 structure. But now we have really annoying problems with the cluster. This server receives aprox. 1 petition per second. We have pen as the load balancer between 2 instances. Once started, both nodes report member.added and they are clustered. Works fine. I can restart any node and no session is lost. But around 12 days after being started, instance number 2, report a cluster.member disappear, then the session replication doesn't work, instance 2 is unstable and gives a timeout error (But instance 1 is still alive!!). So we have to reload both nodes every 12 days. Intance2 Log: = Jan 14, 2008 7:05:17 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-14 19:05:12.847 Jan 14, 2008 7:05:22 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-14 19:05:17.848 Jan 14, 2008 7:05:27 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-14 19:05:22.85 Jan 14, 2008 7:05:35 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-14 19:05:30.111 Jan 14, 2008 7:05:35 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-14 19:05:27.852 Jan 15, 2008 1:56:37 AM org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor report INFO: ThroughputInterceptor Report[ Tx Msg:2 messages Sent:11.00 MB (total) Sent:11.00 MB (application) Time:28.14 seconds Tx Speed:0.39 MB/sec (total) TxSpeed:0.39 MB/sec (application) Error Msg:0 Rx Msg:12195 messages Rx Speed:0.00 MB/sec (since 1st msg) Received:6.74 MB] Jan 15, 2008 8:48:36 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost :4001,localhost,4001, alive=72702012,id={-44 -75 50 38 26 -53 72 -63 -76 -94 12 82 127 106 126 -61 }, payload={}, command={}, domain={}, ] Jan 15, 2008 8:48:36 AM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector performBasicCheck INFO: Suspect member, confirmed dead.[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost:4001, localhost,4001, alive=72702012,id={-44 -75 50 38 26 -53 72 -63 -76 -94 12 82 127 106 126 -61 }, payload={}, command={}, domain={}, ]] Jan 15, 2008 8:48:39 AM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://loc alhost:4001,localhost,4001, alive=72705018,id={-44 -75 50 38 26 -53 72 -63 -76 -94 12 82 127 106 126 -61 }, payload={}, command={}, domain={}, ]] message. Will verify. Jan 15, 2008 8:48:39 AM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost:4001, localhost,4001, alive=72705018,id={-44 -75 50 38 26 -53 72 -63 -76 -94 12 82 127 106 126 -61 }, payload={}, command={}, domain={}, ]] Jan 15, 2008 8:48:39 AM org.apache.catalina.ha.tcp.SimpleTcpCluster send SEVERE: Unable to send message through cluster sender. org.apache.catalina.tribes.ChannelException: Operation has timed out(6 ms.).; Faulty members:tcp://localhost:4001; at org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(Paral lelNioSender.java:97) at org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(Po oledParallelSender.java:53) at org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(Repl icationTransmitter.java:80) at org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoord inator.java:78) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.sendMess age(ThroughputInterceptor.java:61) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI
Re: Automatic Thread Dump configuration
En l'instant précis du 17/01/08 15:46, Chad Kellerman s'exprimait en ces termes: Tomcat Users, I have been googling Tomcat thread dumps and have not seen what I want to accomplish anywhere... Is there a way to configure Tomcat to execute a thread dump whenever there is an Out Of Memory issue or if an app reached the max thread count? When there is an OutOfMemory, it's impossible to make a ThreadDump. The reason is that, since you lack memory, it can be seen as useless to try allocating StackTrace object and stuff it in a new Error(). Moreover, from my experience, when you are out of memory, the location where you are out if generally irrelevant, as it's most of the time cause by a memory leak somewhere else. As for you max ThreadDump, you could still try feeding the tomcat output to an external tool that sends a Kill -3 to tomcat Thre when it sees some keyword. Note that, in both cases, it's not tomcat's job to make a ThreadDump, it's more related to jvm behaviour. Other vendors than sun might have some facilities for that? I am using Tomcat 5.5.25 on RHEL 5. with jdk1.5.0_13 Thanks for the help, Chad -- http://www.devlog.be (a belgian developer's logs) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New jsp not being read
Hi all, Here is my environment: Eclipse Europa Tomcat 5.5 Windows XP Pro My application goes like this: request -- servletA -- form.jsp -(post)- servletB My problem is this: when I make a change to form.jsp, this change is not reflected in the jsp that gets displayed. An older version of the jsp is displayed. I have checked path specified in my servlet to make sure it's poitning to the right jsp. In fact, the version that's displayed doesn't exist in any of my folders, so I'm not sure where this form would be coming from. I've had this result using IE and Firefox. I thought it might be an Europa issue, so i tried running the app on Eclipse 3.2 - same result. Cleaning and rebuilding the project makes no difference. Also, it doesn't seem possible anymore make a change to the servlet, and have it hot deployed. I don't get a message from Tomcat saying it couldn't hot deploy, but in order to make the modified version of the servlet current I need to do a Clean/Rebuild of the project. Everybody's thoughts on this would be greatly appreciated!! Thanks. Bob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I speed up and reduce load of initialization
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavan, Gavan Hood wrote: | My web app is very simple, two servlets already installed so no war | file. Once it finally gets going it is very responsive, the | initialization just takes forever... A few quick questions: Do your servlets perform any of their own initialization? I'm guessing that you would have looked here, first, but I figured I'd just double-check. Are you using an SSL connector? If so, the server may require a lot of random data from your random device, which might not be delivering it fast enough. You might be able to configure the JVM to use a different source of randomness. Are you running with APR? This also has to do with the entropy requirements of SSL, since you can configure APR's source of randomness separately from the JVM. - -chris | | I have some war files coming, but I figure if I cannt get this basic | initialization to work theres not much point. | | Is tomcat supposed to work in embedded environments like this, is it | something others are trying / have working , Is it part of the | roadmap ? | | | | Peter Crowther [EMAIL PROTECTED] wrote: | From: Gavan Hood [mailto:[EMAIL PROTECTED] My problem is the | initialization. When I start tomcat it takes about two minutes to | complete initialization and pegs my little processor at times, | often it keeps it around 80% untilized... | | Yeah, that's not good in an embedded device! | | 2 minutes with or without your application deployed? i.e. how much of | that time is Tomcat startup, and how much is Tomcat deploying your | webapp / your webapp startup? | | How is your application packaged? Are you unpacking it from a WAR, or | is it already unpacked? | | - Peter | | - | To start a new topic, e-mail: users@tomcat.apache.org To | unsubscribe, e-mail: [EMAIL PROTECTED] For | additional commands, e-mail: [EMAIL PROTECTED] | | | | | - Be a better friend, newshound, and | know-it-all with Yahoo! Mobile. Try it now. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkePdQcACgkQ9CaO5/Lv0PDeHQCdEYzVWXyLxVbW5A6nIWGXhqXj 8MIAniN4hMeSrLHhxe9wEa1KWt3EFjjV =R5uK -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to communicate between different tomcat servers
1) You may want to consider JBOSS or GLASSFISH (Which ever one supports clustering better). This is the best done utilizing full blown J2EE servers. This is why JEE was created in a first place. Tomcat should be used by your front end tier. Good luck. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008 12:00 AM To: users Subject: how to communicate between different tomcat servers hi, all I build a web application based on tomcat. In my design, I devide the server side into several separate logic parts,and each part is deployed on a separate Tomcat server. e.g. the first tomcat server is to process login request, second tomcat server is to calculate user data, the third tomcat server is to store all the user information. It is a distribute architecure, and I hope in this way, this system can be extended by adding tomcat server when the application load on one Tomcat server is big enough. For example, when the second tomcat server's calculation work is too big, I can add a new Tomcat server to do calculation work, so do the first Tomcat server for processing login, while in the system, there is only one Tomcat server to store the total user information. This architecture is widely used in the Client/Server mode application, while I'm not sure whether in Browser/Server mode it can work. I think this requirment is different to the Tomcat cluster, because Tomcat cluster can solve the load balance problem, while in my case, I would like to keep some global data on one Tomcat server such as the third tomcat server. So currently, I meet a problem of how to communicate between the tomcat servers, I think http or webservice can do this work simply, but the efficiency is not good, and I don't know whether JMS is a good choice for this. I wonder if there is any other way to communicate between the tomcat server? Can tomcat servers work in such a distribute way? Any help and suggestion will be welcome. Thank you very much Frank - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I speed up and reduce load of initialization
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavin, Er, forget my ravings about SSL initialization. I forgot that you said you were seeing very high CPU utilization. Waiting for randomness would not behave that way. - -chris Christopher Schultz wrote: | Gavan, | | Gavan Hood wrote: | | My web app is very simple, two servlets already installed so no war | | file. Once it finally gets going it is very responsive, the | | initialization just takes forever... | | A few quick questions: | | Do your servlets perform any of their own initialization? I'm guessing | that you would have looked here, first, but I figured I'd just | double-check. | | Are you using an SSL connector? If so, the server may require a lot of | random data from your random device, which might not be delivering it | fast enough. You might be able to configure the JVM to use a different | source of randomness. | | Are you running with APR? This also has to do with the entropy | requirements of SSL, since you can configure APR's source of randomness | separately from the JVM. | | -chris | | | | | I have some war files coming, but I figure if I cannt get this basic | | initialization to work theres not much point. | | | | Is tomcat supposed to work in embedded environments like this, is it | | something others are trying / have working , Is it part of the | | roadmap ? | | | | | | | | Peter Crowther [EMAIL PROTECTED] wrote: | | From: Gavan Hood [mailto:[EMAIL PROTECTED] My problem is the | | initialization. When I start tomcat it takes about two minutes to | | complete initialization and pegs my little processor at times, | | often it keeps it around 80% untilized... | | | | Yeah, that's not good in an embedded device! | | | | 2 minutes with or without your application deployed? i.e. how much of | | that time is Tomcat startup, and how much is Tomcat deploying your | | webapp / your webapp startup? | | | | How is your application packaged? Are you unpacking it from a WAR, or | | is it already unpacked? | | | | - Peter | | | | - | | To start a new topic, e-mail: users@tomcat.apache.org To | | unsubscribe, e-mail: [EMAIL PROTECTED] For | | additional commands, e-mail: [EMAIL PROTECTED] | | | | | | | | | | - Be a better friend, newshound, and | | know-it-all with Yahoo! Mobile. Try it now. - - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkePdf0ACgkQ9CaO5/Lv0PAo9QCeL7zvzRgY7jmaQD1VVef5N1oR WXYAnRhEsrQcrru9EQVaMiycdd7l1VZI =G6Mm -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New jsp not being read
I see this most often when the jsp is on a remote server and the clocks are out of sync between my desktop system and the server. Check to be sure the clocks are in sync if tomcat is on a remote system and transfer the jsp again. You may want to also consider cleaning out tomcat's work directory where compiled jsps are stored at least once whether the clock was at fault or not. --David Bob Riaz wrote: Hi all, Here is my environment: Eclipse Europa Tomcat 5.5 Windows XP Pro My application goes like this: request -- servletA -- form.jsp -(post)- servletB My problem is this: when I make a change to form.jsp, this change is not reflected in the jsp that gets displayed. An older version of the jsp is displayed. I have checked path specified in my servlet to make sure it's poitning to the right jsp. In fact, the version that's displayed doesn't exist in any of my folders, so I'm not sure where this form would be coming from. I've had this result using IE and Firefox. I thought it might be an Europa issue, so i tried running the app on Eclipse 3.2 - same result. Cleaning and rebuilding the project makes no difference. Also, it doesn't seem possible anymore make a change to the servlet, and have it hot deployed. I don't get a message from Tomcat saying it couldn't hot deploy, but in order to make the modified version of the servlet current I need to do a Clean/Rebuild of the project. Everybody's thoughts on this would be greatly appreciated!! Thanks. Bob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to communicate between different tomcat servers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, 印华 wrote: | In my design, I | [have divided] the server side into several separate logic parts, and each | part is deployed on a separate Tomcat server. e.g. the first tomcat | server is to process login request, second tomcat server is to | calculate user data, the third tomcat server is to store all the user | information. It is a [distributed] architecture, and I hope in this way, | this system can be extended by adding tomcat server when the | application load on one Tomcat server is big enough. I'm not sure you need all that complexity... most people just run the whole application on a single server. When the load gets too high for one server, you duplicate the web app onto a second server (and so on) and then load balance between them. There's no reason to have physically separated login, calculation, and data storage mechanisms. | So currently, I meet a problem of how to | communicate between the tomcat servers, I think http or webservice | can do this work simply, but the efficiency is not good, and I don't | know whether JMS is a good choice for this. JSM isn't really any better or worse than SOAP, REST, or other standard forms of communication. | I wonder if there is any | other way to communicate between the tomcat server? Servers can communicate in lots of ways: 1. Records through a database 2. Binary or text data through a socket 3. Binary or text data through a named pipe (on a shared filesystem) 4. Objects through JNDI 5. Objects through RMI | Any help and suggestion will be welcome. Honestly, the best thing to do would be to put everything into a single web app and just load balance between (identical) Tomcat servers. I don't see any advantage of the separation you have created. If you need sessions to be replicated in a cluster, you can simply turn on distributable sessions and configure the Tomcat instances to participate in the cluster. If you can tolerate the loss of information resulting from a Tomcat instance going down while a user is logged-in, then you don't even have to do that. Less complexity results in easier maintenance. Hardware is cheap. Manpower is expensive. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkePj6kACgkQ9CaO5/Lv0PCp8QCgirMzuuO3iuUgh0Ql3tZZ7qUZ tEYAmgMFDz227mn6yf/wYQsITodDJIVU =93Cr -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New jsp not being read
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, Bob Riaz wrote: | Thank you, David. The jsp is on my development machine. I'm doing all my | testing locally, so I wouldn't think this would be an issue. However, I have | been changing my system clock to test some time sensitive aspects of the | application. I will look into this more closely. I wonder if you could give | me a pointer how to clean tomcat's work directory. | Thanks again for your thoughts. It's easy: just shut down Tomcat, delete the entire work directory (found in $CATALINA_HOME) and its contents, and then restart Tomcat. If Tomcat doesn't have permissions to create the work directory, then you should empty it, but not delete it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkePkbMACgkQ9CaO5/Lv0PAriACdHETZ9ZsB46znaE9ICs0g2G6e 1rwAnRYFyesO63zKQdBz9q0m9FR/3YT6 =AAB2 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic Thread Dump configuration
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: | En l'instant précis du 17/01/08 15:46, Chad Kellerman s'exprimait en ces | termes: | Tomcat Users, | I have been googling Tomcat thread dumps and have not seen what I | want | to accomplish anywhere... | |Is there a way to configure Tomcat to execute a thread dump whenever | there is an Out Of Memory issue or if an app reached the max thread | count? Since an OOME is a Throwable, any stack trace that is available will be dumped to standard output. Often, there is no stack trace available, so you don't get one. | When there is an OutOfMemory, it's impossible to make a ThreadDump. The | reason is that, since you lack memory, it can be seen as useless to try | allocating StackTrace object and stuff it in a new Error(). Moreover, | from my experience, when you are out of memory, the location where you | are out if generally irrelevant, as it's most of the time cause by a | memory leak somewhere else. True. On the other hand, you /can/ get a heap dump if you're using Sun's Java 1.6.x using this JVM option: - -XX:+HeapDumpOnOutOfMemoryError - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkePkQMACgkQ9CaO5/Lv0PAZrwCgnCnVc7BJZ/UOqY8ZAFkD3Lp6 WAkAn0HWiUh2ijXWfnzFTJoaI2kTlUYu =ZY/C -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New jsp not being read
I've found that working (on my dev box -- sometimes windows, sometime linux) under Eclipse, it can be somewhat unpredictable when redeployment of a new page really takes in Tomcat's directory. When it seems funny, as Chris suggested, I shutdown Tomcat (from the MyEclipse control). Since I often have several apps I'm currently working on (myapp1, myapp2, ...), I just remove the specific Tomcat folders for, say myapp2: ~webapps/myapp2 and ~work/myapp2, then redeploy from the MyEclipse control., and then restart Tomcat. I've found that a page taking after changes is even more delicate when the page is a GWT-based page in the app. --Ken Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, Bob Riaz wrote: | Thank you, David. The jsp is on my development machine. I'm doing all my | testing locally, so I wouldn't think this would be an issue. However, I have | been changing my system clock to test some time sensitive aspects of the | application. I will look into this more closely. I wonder if you could give | me a pointer how to clean tomcat's work directory. | Thanks again for your thoughts. It's easy: just shut down Tomcat, delete the entire work directory (found in $CATALINA_HOME) and its contents, and then restart Tomcat. If Tomcat doesn't have permissions to create the work directory, then you should empty it, but not delete it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkePkbMACgkQ9CaO5/Lv0PAriACdHETZ9ZsB46znaE9ICs0g2G6e 1rwAnRYFyesO63zKQdBz9q0m9FR/3YT6 =AAB2 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic Thread Dump configuration
Christopher Schultz schrieb: | When there is an OutOfMemory, it's impossible to make a ThreadDump. The | reason is that, since you lack memory, it can be seen as useless to try | allocating StackTrace object and stuff it in a new Error(). Moreover, | from my experience, when you are out of memory, the location where you | are out if generally irrelevant, as it's most of the time cause by a | memory leak somewhere else. True. On the other hand, you /can/ get a heap dump if you're using Sun's Java 1.6.x using this JVM option: -XX:+HeapDumpOnOutOfMemoryError -chris ... and also for 1.4.2_12+ or 1.5.0_07+ (although in combination with parallel young GC better with 1.4.2_15+). In addition there is: -XX:HeapDumpPath=FILENAME FILENAME, if relative, will be relative to the working directory, for Tomcat relative to bin/. For Java 6 (and I think also recent 1.4.2 but maybe not Java 5) there is also -XX:OnOutOfMemoryError=command. You could experiment with putting a kill -QUIT to your process into the command script. Don't know, if the externally triggered thread dump needs Java memory allocation. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: username/password in DataSource configuration
This sounds like your SQL server may be running off of Windows NT authentication, taking (simply passing, like through Active Directory possibly) your network logon credentials. Are you logging on to a network through Windows each morning? Try that logon combo, if so. See if it doesn't pass those credentials through. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 7:42 PM To: users@tomcat.apache.org Subject: username/password in DataSource configuration Hi everyone, The connection to SQL server in my machine is by default so username and password are not needed to login. In this case, what should I specify in Resource.../ for username and password attributes? I tried not to include them but got an error of Login failed for user ''. The user is not associated with a trusted SQL Server connection. Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/EmployeeDB auth=Container type= javax.sql.DataSource username=user name password=pwd driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver url=jdbc:sqlserver://localhost:1433;databaseName=EmployeeDB maxActive=8 maxIdle=4/ /Context Thanks. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 - Cluster error.
already replied to your old thread ok, it looks like you might have ended up with a rogue socket, and what happens is that any message sent to that socket just gets lost in the ether, since it doesn't have any interest ops. There is a workaround for this, turn off keep alives all together, or implement a keep alive timeout Option 1 - no keep alives at all Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender timeout=6 keepAliveCount=0/ Option 2 - implement a keep alive timeout Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender timeout=6 keepAliveTime=12/ or make a combination of both values either option should work for you. On a side note, I'm interested if the scenario you run into is reproducible, it keeps happening over and over again, then if possible, I'd like to get some debug logs from you Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New jsp not being read
Thank you, David. The jsp is on my development machine. I'm doing all my testing locally, so I wouldn't think this would be an issue. However, I have been changing my system clock to test some time sensitive aspects of the application. I will look into this more closely. I wonder if you could give me a pointer how to clean tomcat's work directory. Thanks again for your thoughts. --Bob -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008 10:35 AM To: Tomcat Users List Subject: Re: New jsp not being read I see this most often when the jsp is on a remote server and the clocks are out of sync between my desktop system and the server. Check to be sure the clocks are in sync if tomcat is on a remote system and transfer the jsp again. You may want to also consider cleaning out tomcat's work directory where compiled jsps are stored at least once whether the clock was at fault or not. --David Bob Riaz wrote: Hi all, Here is my environment: Eclipse Europa Tomcat 5.5 Windows XP Pro My application goes like this: request -- servletA -- form.jsp -(post)- servletB My problem is this: when I make a change to form.jsp, this change is not reflected in the jsp that gets displayed. An older version of the jsp is displayed. I have checked path specified in my servlet to make sure it's poitning to the right jsp. In fact, the version that's displayed doesn't exist in any of my folders, so I'm not sure where this form would be coming from. I've had this result using IE and Firefox. I thought it might be an Europa issue, so i tried running the app on Eclipse 3.2 - same result. Cleaning and rebuilding the project makes no difference. Also, it doesn't seem possible anymore make a change to the servlet, and have it hot deployed. I don't get a message from Tomcat saying it couldn't hot deploy, but in order to make the modified version of the servlet current I need to do a Clean/Rebuild of the project. Everybody's thoughts on this would be greatly appreciated!! Thanks. Bob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
warning error sending end packet
I am seeing a lot of warning messages in catalina.out with the stack trace show below. We are using tomcat 5.5.16 with apache 2 and ajp13 to connect. Can someone shed some light on this? Thanks. = WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Jan 17, 2008 12:21:23 PM org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: warning error sending end packet
http://www.nabble.com/mod_jk-broken-pipe-ts6882827.html Eqbal schrieb: I am seeing a lot of warning messages in catalina.out with the stack trace show below. We are using tomcat 5.5.16 with apache 2 and ajp13 to connect. Can someone shed some light on this? Thanks. = WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Jan 17, 2008 12:21:23 PM org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I speed up and reduce load of initialization
Normally compilers are the memory hogs! A few things you can do is that; 1. If you use JSP, convert to servlets to avoid initialization phase compiling. 2. If your JDk is JIT (Just in time) compiler enable, disable it. You may have a bit slow execution. But should have satisfactory speed. 3. Increase memory size! I use 512MB and dual CPU. Still initialization taking significant time! Gavan Hood wrote: I agree it will take time, i have 64MB of ram. ... I notice that on running it is causing a lot of swapping to occur, my swapping process is using a lot of time. -- View this message in context: http://www.nabble.com/How-can-I-speed-up-and-reduce-load-of-initialization-tp14857523p14934889.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
My output MIME is ALWAYS PDF! If I save the generated PDF into normal directory and access is OK. It may be one of these; 1. IE security system may be blocking certain patterns developed by previous errors. 2. Tomcat is not handling requests well. Regards. -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14935186.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
life span for Tomcat 5.5.x and 6.0.x ?
I was wondering if there's any sort of planned end-of-life date for when security patches will no longer be provided for Tomcat 5.5.x and 6.0.x ? We're upgrading from 5.0.x and I want to make sure we don't have to upgrade again for a while (ideally not until sometime in 2009). Thanks - Ray
Re: life span for Tomcat 5.5.x and 6.0.x ?
Ray Johannsson wrote: I was wondering if there's any sort of planned end-of-life date for when security patches will no longer be provided for Tomcat 5.5.x and 6.0.x ? Nothing is certain since it all depends on how much effort the release managers are able / want to put in. That said, as the RM for 4.1.x I see security fix support continuing for at least 2008. Beyond that? Depends if there is any sign on the users list of people still using it. I still see the odd message from a 4.1.x user and it isn't as if doing around a release a year is taxing. 5.5.x has around 100 open bugs that are slowly getting fixed. My guess is that these will be fixed in the next 12 months and then 5.5.x will move to releases only when there are security fixes. Bugs will probably still get fixed as well, but maybe not. 6.0.x will continue for a while. There are plans for a 6.2.x that will have some very minor API changes but, since they are API changes, we will call it 6.2.x. When this will happen? Don't know. Because the API changes are so minor and the upgrade path trivial for 99.99% of users then there is a small chance we will stop all support for 6.0.x at that point and move to 6.2.x. What actually happens will depend again on what people want to do, the size of the API change and if they think the effort of continuing to maintain 6.0.x is worth it. We're upgrading from 5.0.x and I want to make sure we don't have to upgrade again for a while (ideally not until sometime in 2009). I would go (and have gone) with 6.0.x, accept that there may be a change to 6.2.x but that you can almost certainly treat it like to 6.0.x to 6.0.x+1 upgrade. If this isn't the case then it is almost certain 6.0.x support will continue. Bear in mind I am only one committer. The others may have very different views but I suspect their recommendation will be the same - go with 6.0.x. HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ordered loading of WAR files
Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet context.xml mechanism. On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... and that on the 2nd startup it tries to test the connection before the war that is the connection has loaded. I've solved this temporarily by deleting this directory before startup. Does anyone know of a better way to do this? I am using tomcat 6014. Thanks, Fu-Tung Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Custom initialization after startup
Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? -- View this message in context: http://www.nabble.com/Custom-initialization-after-startup-tp14937407p14937407.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
In my case every doc has a different name so the 'same document' issue doesn't apply. I can't tell you if that would be a problem or lot. Jonadan wrote: Thanks! After changing no-cache to cache, it worked! But I am not sure whether this may deliver the same documents when diiferent documents are generated. -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14938025.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
Thanks! After changing no-cache to cache, it worked! But I am not sure whether this may deliver the same documents when diiferent documents are generated. The another problem was that inline didn't work for JSP urls, say, .../mydoc.jsp. So I have to use a servlet taking JSP as parameters and use RequestDispatcher. It works properly now. Regards. MrKimi wrote: The critical part of my solution (which I got from someone else's post) is the setting of the cache stuff. -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14936162.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
The critical part of my solution (which I got from someone else's post) is the setting of the cache stuff. Setting the mime type is something you have to do and my particular case depends on the filename type, but as long as it gets set you also need to set the cache right as well. Jonadan wrote: My output MIME is ALWAYS PDF! If I save the generated PDF into normal directory and access is OK. It may be one of these; 1. IE security system may be blocking certain patterns developed by previous errors. 2. Tomcat is not handling requests well. Regards. -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14935934.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom initialization after startup
From: Jonadan [mailto:[EMAIL PROTECTED] Subject: Custom initialization after startup Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? Depends on what you mean by IMMEDIATELY. You'll at least need to insure that the Host attribute deployOnStartup is true (it is by default), and that you implement a ServletContextListener for each webapp of interest. Read section 10 of the servlet spec for details of the latter. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom initialization after startup
I need to start database before any servlet gets first request. So immediately after server start, initialize embedded database and make it ready for incomming first requests, of course, in a separate thread. The same goes not termination time. I need to have control passed immediately after all working servelts destroyed so that I can terminate database system NORMALLY! Currently it dies suddenly with Tomcat and every new starts starts with emergency recovery! Smooth normal shutdown is preferred. Regards. Caldarale, Charles R wrote: From: Jonadan [mailto:[EMAIL PROTECTED] Subject: Custom initialization after startup Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? Depends on what you mean by IMMEDIATELY. You'll at least need to insure that the Host attribute deployOnStartup is true (it is by default), and that you implement a ServletContextListener for each webapp of interest. Read section 10 of the servlet spec for details of the latter. -- View this message in context: http://www.nabble.com/Custom-initialization-after-startup-tp14937407p14947102.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom initialization after startup
PS: Yes, it can be done with ServletContextListener since we can check whether it is alive or not. However we may not sure whether it is system shutdown or app. shutdown. This is quite tricky. DBMS can use huge heap resources up to over 500GB on larger systems. This can be a problem without knowing the entire server is going down! Regards. -- View this message in context: http://www.nabble.com/Custom-initialization-after-startup-tp14937407p14947980.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14947983.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]