I've thumbed through the archives, can anyone give me larger hint? -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 1:44 PM To: Tomcat Users List Subject: RE: tomcat shutdown.sh doesn't kill tomcat processes
Howdy, Hey, you're virtually next door to me ;) Anyways, you most likely have non-daemon threads in your app. Tomcat can't shut those down for you (see javadoc in java.lang.Thread as well as many discussions on this list in the past). That's why the process is still alive, shutdown isn't properly completed, and you can't start the server again because the socket is still bound. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Patrice Seyed [mailto:[EMAIL PROTECTED] >Sent: Thursday, September 25, 2003 1:43 PM >To: [EMAIL PROTECTED] >Subject: tomcat shutdown.sh doesn't kill tomcat processes > >So the symptom is /usr/local/tomcat/bin/shutdown.sh does not stop >tomcat. >By the way tomcat is running jk2 connector on port 8080 to apache on >port 80 > >Even after i stop tomcat, I will see in netstat -nap | grep 8080 that >the >socket is still open, and ps -elf | grep tomcat that the process for >tomcat >are still running. >Any ideas or seen this? > > >When I try to stop it again of course it complains, because it thinks >its stopped; ># service tomcat stop >Stopping Tomcat >Using CATALINA_BASE: /usr/local/tomcat >Using CATALINA_HOME: /usr/local/tomcat >Using CATALINA_TMPDIR: /usr/local/tomcat/temp >Using JAVA_HOME: /usr/local/java >Catalina.stop: java.net.ConnectException: Connection refused >java.net.ConnectException: Connection refused > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) > at >java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) > at java.net.Socket.connect(Socket.java:426) > at java.net.Socket.connect(Socket.java:376) > at java.net.Socket.<init>(Socket.java:291) > at java.net.Socket.<init>(Socket.java:119) > at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) > at >org.apache.catalina.startup.Catalina.execute(Catalina.java:402) > at >org.apache.catalina.startup.Catalina.process(Catalina.java:180) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v >a:39 >) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r >Impl >.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at >org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > >the corresponding out in catalina.out is: >Catalina.start: LifecycleException: Protocol handler initialization >failed: >java.net.BindException: Address already in use:8080 >LifecycleException: Protocol handler initialization failed: >java.net.BindException: Address already in use:8080 > at >org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja v >a:11 >19) > at >org.apache.catalina.core.StandardService.initialize(StandardService.jav a >:579 >) > at >org.apache.catalina.core.StandardServer.initialize(StandardServer.java: 2 >246) > at org.apache.catalina.startup.Catalina.start(Catalina.java:511) > at >org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > at >org.apache.catalina.startup.Catalina.process(Catalina.java:180) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v >a:39 >) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r >Impl >.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at >org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) >Catalina.stop: LifecycleException: This server has not yet been started > > > > >Regards, > >Patrice Seyed, System Administrator >RHCE, SCSA >Genetics Program, BU School of Medicine > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]