Thanks to the people that responded to my request. I propose that this be added to the FAQ.
When attempting to launch tomcat under redhat linux (any version) using jsvc with -user option during boot, and the only logged message is as follows: jsvc.exec error: Service exit with a return value of 143 The final solution (thanks to Patrick Glennon) was: 1. Ensure that the java environment (CLASSPATH, JAVA_HOME, CATALINA_HOME, etc) was fully represented in the launch script 2. Ensure that there was a proper symlink in the directories rc3.d, rc4.d, and/or rc5.d to the launch script 'tomcat' that resides in init.d example: ln -s /etc/init.d/tomcat /etc/rc3.d/S93tomcat The example value 93 is late enough to guarantee a start. On Tue, 2004-06-29 at 00:03, David Johnson wrote: > Thanks for the feedback so far. It has been very helpful - I think that > I am having an issue with my relative inexperience with linux boot > processes. > > I have made the log as verbose as I could, and it appears that linux is > trying to start Tomcat before the network is fully available. > > Tomcat.sh is a trivial modification of the sample file that is shipped > with the Tomcat server. > > The call to Tomcat.sh is fired from a script called "tomcat" in init.d > > Is it possible that I have my startup script in the wrong folder? > > Thanks, > > Log excerpt (successful startup): > > INFO: Installing web application at context path from URL > file:/opt/jakarta-tomcat-5.0.25/webapps/ROOT > Jun 28, 2004 11:50:19 PM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8000 > Jun 28, 2004 11:50:20 PM org.apache.jk.common.ChannelSocket init > INFO: JK2: ajp13 listening on /0.0.0.0:8009 > Jun 28, 2004 11:50:20 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=17/128 > config=/opt/jakarta-tomcat-5.0.25/conf/jk2.properties > Jun 28, 2004 11:50:21 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 30279 ms > > > Log excerpt (failed startup): > > INFO: Installing web application at context path from URL > file:/opt/jakarta-tomcat-5.0.25/webapps/ROOT > Jun 28, 2004 11:12:11 PM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8000 > Jun 28, 2004 11:12:12 PM org.apache.jk.common.ChannelSocket init > INFO: JK2: ajp13 listening on /0.0.0.0:8009 > Jun 28, 2004 11:12:12 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=22/190 > config=/opt/jakarta-tomcat-5.0.25/conf/jk2.properties > Jun 28, 2004 11:12:12 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 32346 ms > Jun 28, 2004 11:33:11 PM org.apache.coyote.http11.Http11Protocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8000 > Jun 28, 2004 11:33:12 PM org.apache.coyote.tomcat5.CoyoteConnector pause > SEVERE: Protocol handler pause failed > java.net.SocketException: Network is unreachable > 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:452) > at java.net.Socket.connect(Socket.java:402) > at java.net.Socket.<init>(Socket.java:309) > at java.net.Socket.<init>(Socket.java:124) > at > org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:420) > at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:264) > at org.apache.jk.server.JkMain.pause(JkMain.java:657) > at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:199) > at > org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1417) > at > org.apache.catalina.core.StandardService.stop(StandardService.java:517) > at > org.apache.catalina.core.StandardServer.stop(StandardServer.java:2332) > at org.apache.catalina.startup.Catalina.stop(Catalina.java:605) > 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:324) > at org.apache.catalina.startup.Bootstrap.stop(Bootstrap.java:296) > 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:324) > at > org.apache.commons.daemon.support.DaemonLoader.stop(DaemonLoader.java:241) > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Shutdown or reload already scheduled > jsvc.exec error: Service exit with a return value of 143 > > > > --------------------------------------------------------------------- > 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]
