求助:Tomcat starup.bat启动失败闪退问题

时间:2022-08-27 19:11:24
求助:eclipse正常启动tomcat,使用starup.bat启动闪退.谢谢各位!

添加PAUSE后显示


求助:Tomcat starup.bat启动失败闪退问题

检查端口并没有被占用

求助:Tomcat starup.bat启动失败闪退问题

jdk和tomcat环境变量没问题

求助:Tomcat starup.bat启动失败闪退问题
求助:Tomcat starup.bat启动失败闪退问题

eclipse正常启动登陆8080显示

求助:Tomcat starup.bat启动失败闪退问题

日志


28-Mar-2018 08:13:46.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
28-Mar-2018 08:13:46.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         D:\javaWeb\apache-tomcat-8.0.50
28-Mar-2018 08:13:46.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:\javaWeb\apache-tomcat-8.0.50
28-Mar-2018 08:13:46.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\javaWeb\apache-tomcat-8.0.50\conf\logging.properties
28-Mar-2018 08:13:46.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
28-Mar-2018 08:13:46.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
28-Mar-2018 08:13:46.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
28-Mar-2018 08:13:46.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
28-Mar-2018 08:13:46.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=D:\javaWeb\apache-tomcat-8.0.50
28-Mar-2018 08:13:46.942 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\javaWeb\apache-tomcat-8.0.50
28-Mar-2018 08:13:46.944 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\javaWeb\apache-tomcat-8.0.50\temp
28-Mar-2018 08:13:46.944 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.16 using APR version 1.6.3.
28-Mar-2018 08:13:46.944 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
28-Mar-2018 08:13:47.808 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2m  2 Nov 2017)
28-Mar-2018 08:13:47.951 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
28-Mar-2018 08:13:47.969 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
28-Mar-2018 08:13:47.973 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1360 ms
28-Mar-2018 08:13:48.013 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
28-Mar-2018 08:13:48.014 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.50
28-Mar-2018 08:13:48.076 严重 [Catalina-startStop-1] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webwin]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webwin]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@2443bae7]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4977)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 6 more
Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:\webwin] is not valid
at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:746)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:704)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 9 more

28-Mar-2018 08:13:48.079 严重 [main] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:789)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.startup.Catalina.start(Catalina.java:641)
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.start(Bootstrap.java:349)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:483)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:951)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 6 more

28-Mar-2018 08:13:48.083 严重 [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start.
 org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.startup.Catalina.start(Catalina.java:641)
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.start(Bootstrap.java:349)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:483)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:789)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:951)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 11 more

5 个解决方案

#1


检查是否有tomcat的进程存在,如果有终止掉。

#2


没有显示有Apache Tomcat名称的服务
求助:Tomcat starup.bat启动失败闪退问题
eclipse关闭tomcat后显示8080端口仍然空闲,server.xml配置的端口号是默认的8080
求助:Tomcat starup.bat启动失败闪退问题
点击bin/startup.bat仍然无法打开tomcat......

#3


以管理员身份打开试试

#4


以管理员打开startup.bat仍不能启动...管理员进入cmd仍没有tomcat的应用...

#5


配置确定没问题的话,先执行shutdown.bat把服务器关了再打开试试

#1


检查是否有tomcat的进程存在,如果有终止掉。

#2


没有显示有Apache Tomcat名称的服务
求助:Tomcat starup.bat启动失败闪退问题
eclipse关闭tomcat后显示8080端口仍然空闲,server.xml配置的端口号是默认的8080
求助:Tomcat starup.bat启动失败闪退问题
点击bin/startup.bat仍然无法打开tomcat......

#3


以管理员身份打开试试

#4


以管理员打开startup.bat仍不能启动...管理员进入cmd仍没有tomcat的应用...

#5


配置确定没问题的话,先执行shutdown.bat把服务器关了再打开试试