|
From: Dean H. <de...@xs...> - 2009-10-29 14:43:47
|
I am starting to play with JSW for tomcat 3.3.7, 64 bit for fun. when I run ./tomcat start (tomcat was the wrappertest file) my tomcat starts fine but then when running ./tomcat status it says the pid file is stale yet my wrapper and tomcat are running(and if I kill tomcat, the wrapper restarts it). ie. my status and stop commands completely don't work because of some pid problem. Here is data from my last run... pid file 4013 Then here is a typical ps...(4017 is tomcat and 4015 is wrapper, but no 4013 exists...that must have been the shell file pid or something). root@builddragon:/opt/tomcat/ wrapper-linux-x86-64-3.3.7# ps -ef | grep tomcat root 4015 1 0 22:18 ? 00:00:00 /opt/tomcat/wrapper-linux-x86-64-3.3.7/bin/./wrapper /opt/tomcat/wrapper-linux-x86-64-3.3.7/bin/../conf/tomcat.conf wrapper.syslog.ident=tomcat6 wrapper.pidfile=/opt/tomcat/tomcat6.pid wrapper.name=tomcat6 wrapper.displayname=Tomcat6 Server wrapper.dae monize=TRUE wrapper.statusfile=/opt/tomcat/tomcat6.status wrapper.java.statusfile=/opt/tomcat/tomcat6.java.status root 4017 4015 6 22:18 ? 00:00:29 /opt/jdk/bin/java -Djava.endorsed.dirs=/opt/tomcat/bin:/opt/tomcat/common/endorsed -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp -Djava.library.path=/opt/tomcat/wrapper-linux-x86-64-3.3.7/lib -classpath /opt/ tomcat/wrapper-linux-x86-64-3.3.7/lib/wrapper.jar:/opt/jdk/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar -Dwrapper.key=Dq17CpXisAAYC-ed -Dwrapper.port=32001 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=4013 -Dwrapper.version=3.3.7 -Dwrapper.native_library=wrapper -Dwrapper.s ervice=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperStartStopApp org.apache.catalina.startup.Bootstrap 1 start org.apache.catalina.startup.Bootstrap TRUE 1 stop root 4296 27756 0 22:26 pts/0 00:00:00 grep tomcat NOTE: obvioulsy tomcat stop fails and tomcat status fails and deletes the pid file which is wrong. When I kill tomcat, wrapper still starts it up fine but the pid file is all wrong. Also, the 4017 command above seems odd to me as it passes in all 7 arguments but the WrapperStartStopApp is supposed to only pass in the 2 start args and the 3 stop args I would think into the tomcat bootstrap process? anyone have any idea what is going on? thanks, Dean |