the message "\$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop
2011-08-24 16:19
861 查看
Bug 51309 -
Patch to better stop support with
CATALINA_PID
Description
Caio Cezar
2011-06-01 15:33:13 UTC
Comment 1
Mark Thomas
2011-06-02 20:11:43 UTC
Comment 2
Caio Cezar
2011-06-03 10:55:10 UTC
Comment 3
Mark Thomas
2011-06-14 11:48:54 UTC
Patch to better stop support with
CATALINA_PID
| |
| ||||||||||||||||||||||||||||||||||||||
| |||
Caio Cezar
2011-06-01 15:33:13 UTC
When using the CATALINA_PID variable the catalina.sh stop action verify if the PID file is empty (-s $CATALINA_PID) and after that verify if the file is a file (-f $CATALINA_PID). But if the file doesn't exist the "test -s" return 1 consequently the message "\$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted." is never printed. I made a patch to fix this, but what you need to do is just invert "-s" and "-f". PATCH: --- catalina.sh.bkp 2011-06-01 12:02:07.541350449 -0300 +++ catalina.sh 2011-06-01 12:02:37.916302955 -0300 @@ -403,19 +403,19 @@ fi if [ ! -z "$CATALINA_PID" ]; then - if [ -s "$CATALINA_PID" ]; then - if [ -f "$CATALINA_PID" ]; then + if [ -f "$CATALINA_PID" ]; then + if [ -s "$CATALINA_PID" ]; then kill -0 `cat "$CATALINA_PID"` >/dev/null 2>&1 if [ $? -gt 0 ]; then echo "PID file found but no matching process was found. Stop aborted." exit 1 fi else - echo "\$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted." - exit 1 + echo "PID file is empty and has been ignored." fi else - echo "PID file is empty and has been ignored." + echo "\$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted." + exit 1 fi fi
Comment 1
Mark Thomas
2011-06-02 20:11:43 UTC
Thanks for the patch. For future reference patches work best as attachments the lines are likely to get wrapped if you paste them in the comments box. The patch has been applied to 7.0.x and will be included in 7.0.15 onwards. I have proposed the patch for 6.0.x.
Comment 2
Caio Cezar
2011-06-03 10:55:10 UTC
(In reply to comment #1) > Thanks for the patch. > > For future reference patches work best as attachments the lines are likely to > get wrapped if you paste them in the comments box. > > The patch has been applied to 7.0.x and will be included in 7.0.15 onwards. > > I have proposed the patch for 6.0.x. Thanks Mark
Comment 3
Mark Thomas
2011-06-14 11:48:54 UTC
This has been fixed in 6.0.x and will be included in 6.0.33 onwards.
相关文章推荐
- $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.
- pid.txt CATALINA_PID was set but the specified file does not exit
- Runtime "Apache Tomcat v7.0" is invalid. The specified Tomcat installation directory does not exist.
- BEA-290074 <Deployment service servlet received file download request for file "security/SerializedSystemIni.dat". The file may exist, but download of this file is not allowed.>
- matlab运行中出现“Caught "std::exception" Exception message is: Message Catalog MATLAB:builtins was not loaded from the file."
- 解决Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.
- Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute permission
- Eclipse下启动tomcat报错:/bin/tool.jar which is referenced by the classpath, does not exist.
- NSInternalInconsistencyException: loaded the "XXXView" nib but the view outlet was not set
- UIViewController _loadViewFromNibNamed:bundle:] loaded the "loc" nib but the view outlet was not set
- loaded the "xxx" nib but the view outlet was not set 错误的解决办法。
- ERROR! MySQL is running but PID file could not be found ?
- UIViewController _loadViewFromNibNamed:bundle:] loaded the "loc" nib but the view outlet was not set
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- xcode "nib but the view outlet was not set."错误
- loaded the "XXXView" nib but the view outlet was not set 解决方案
- loaded the "ViewControll" nib but theview outlet was not set
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- loaded the "BlueView" nib but the view outlet was not set 错误的解决办法。
- TOMCAT 关闭报错:Tomcat did not stop in time. PID file was not removed