我最近在一所使用Tomcat和Railo的大学受聘。
在大多数情况下,Railo运行良好,但偶尔铁路冻结并停止渲染任何CFM或CFC页面,只是给出502错误。通常可以使用service railo_ctl restart
解决此问题,但最近出现了更多错误:
* Shutting down Railo: Sep 18, 2013 11:06:55 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:457)
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.startup.Bootstrap.stopServer(Bootstrap.java:371)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:452)
Tomcat did not stop in time. PID file was not removed.
. . . . . . . . . . . . . . . . . . . . [FAIL]
* The Tomcat/Railo process is not responding. Forcing shutdown...
* Forcing Railo Shutdown: [DONE]
* Starting Railo: * Allow Tomcat to open more than 1024 files: . . . [DONE]
--------------------------------------------------------
It may take a few moments for Railo to start processing
CFML templates. This is normal.
--------------------------------------------------------
和
* Shutting down Railo: Tomcat did not stop in time. PID file was not removed.
. . . . . . . . . . . . . . . [DONE]
* Starting Railo: * Allow Tomcat to open more than 1024 files: . . . [DONE]
--------------------------------------------------------
It may take a few moments for Railo to start processing
CFML templates. This is normal.
--------------------------------------------------------
答案 0 :(得分:2)
此错误表示Tomcat进程本身已崩溃。该脚本尝试连接到tomcat关闭端口(通常是8005) - 但由于tomcat已崩溃,因此无法连接。因此,“连接被拒绝”错误。
对于PID文件,railo_ctl脚本只是检查位于PID文件中的进程ID。由于该进程已经死亡,因此PID文件不再相关,脚本会采取默认操作来处理它。
你真正需要做的是找出Tomcat崩溃的原因。检查catalina.out日志文件 - 因为它将是Tomcat崩溃原因的最佳线索。
希望这有帮助!