首先,这不是前面提到的类似问题,因为标题相似的问题与我现在提到的问题不同!
我已启用 Debug 来捕获日志,而Tomcat容器启动是从Tomcat.exe->日志记录->级别“ Debug”
触发的以下是调试日志,我能够捕获以下日志:
[2019-06-19 11:30:49] [debug] ( prunsrv.c:1729) [ 8636] Commons Daemon procrun log initialized
[2019-06-19 11:30:49] [info] ( prunsrv.c:1733) [ 8636] Commons Daemon procrun (1.1.0.0 64-bit) started
[2019-06-19 11:30:49] [info] ( prunsrv.c:1643) [ 8636] Running 'Tomcat8' Service...
[2019-06-19 11:30:49] [debug] ( prunsrv.c:1417) [ 1044] Inside ServiceMain...
[2019-06-19 11:30:49] [debug] ( prunsrv.c:885 ) [ 1044] reportServiceStatusE: dwCurrentState = 2, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0
[2019-06-19 11:30:49] [info] ( prunsrv.c:1175) [ 1044] Starting service...
[2019-06-19 11:30:49] [debug] ( javajni.c:236 ) [ 1044] loading jvm 'C:\Program Files\Java\jre1.8.0_171\bin\server\jvm.dll'
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[2] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8\temp
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[3] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[4] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8\conf\logging.properties
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[5] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8\bin\tomcat-juli.jar
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[6] exit
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[7] abort
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[8] -Xms512m
[2019-06-19 11:30:49] [debug] ( javajni.c:753 ) [ 1704] Jvm Option[9] -Xmx1024m
[2019-06-19 11:30:49] [debug] ( javajni.c:511 ) [ 1704] JVM aborted
[2019-06-19 11:30:49] [debug] ( prunsrv.c:960 ) [ 1704] Start exit hook called ...
[2019-06-19 11:30:49] [debug] ( prunsrv.c:961 ) [ 1704] VM exit code: 1
这是我尝试从Windows服务重新启动Tomcat服务时收到的错误!
如何使用上述详细信息解决Tomcat启动问题? 如果您需要其他详细信息,请告诉我。
EDIT-1 : 从Tomcat8w.exe更新了JAVA_OPTS
-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8
-Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8
-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat8\conf\logging.properties