雄猫不启动

2022-09-04 06:05:17

突然由于某种原因,tomcat服务器没有运行/启动/停止。

以下是我在运行启动命令时得到的结果,

  C:\Program Files\jasperserver-3.5.0\apache-tomcat\bin>startup
Using CATALINA_BASE:   C:\Program Files\jasperserver-3.5.0\apache-tomcat
Using CATALINA_HOME:   C:\Program Files\jasperserver-3.5.0\apache-tomcat
Using CATALINA_TMPDIR: C:\Program Files\jasperserver-3.5.0\apache-tomcat\temp
Using JRE_HOME:        C:\PROGRA~1\JASPER~1.0\java\jre

雄猫窗口弹出一瞬间,然后消失。

(我在c:\program文件下安装了另一个java实例)

帮助!!!

更新:

来自卡塔利娜文件的日志

Mar 22, 2011 3:41:50 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 22, 2011 3:41:50 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1017 ms
Mar 22, 2011 3:41:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 22, 2011 3:41:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Mar 22, 2011 3:41:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 22, 2011 3:42:06 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 22, 2011 3:42:06 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 22, 2011 3:42:06 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/43  config=null
Mar 22, 2011 3:42:06 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 22, 2011 3:42:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15374 ms

答案 1

请代替 使用 。然后窗口不会消失,你可以看到发生了什么catalina.bat runstartup.bat


答案 2

在我的情况下,这是路径中最后一个斜杠的问题:最后一个斜杠不应该在那里!%CATALINA_HOME%

C:\tomcat\8.0.30- 正确

C:\tomcat\8.0.30\- 错误

查看 http://blackandwhitecomputer.blogspot.de/2015/09/tomcat-debug-cannot-startup.html

老实说,我没有预料到现代应用程序可能依赖于环境变量路径中的最终斜杠!


推荐