我试图在Eclipse中的Tomcat上运行我的应用程序,但是在本地主机上启动Server Tomcat v8.5 Server无法启动。错误。
我已经尝试了一切。我什至在Ubuntu上清除了Java,在Eclipse中创建了新的工作区,即新的Tomcat服务器实例。第一次跑步时还可以。但是随后我对代码进行了一些更改,尝试运行它,再次出现此错误。
我不认为这是我的代码问题,因为发生这种情况时,我无法在服务器上运行任何应用程序。
非常感谢您的帮助,因为我已经尝试解决这一问题已有两天了。

我在带有此错误弹出窗口的窗口之前在Eclipse中获得以下输出:

May 20, 2017 7:22:36 PM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8006]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:656)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 11 more


这些消息出现在:

May 20, 2017 7:22:36 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-nio-8081"]
May 20, 2017 7:22:36 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-nio-8010"]
May 20, 2017 7:22:36 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
May 20, 2017 7:22:36 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-nio-8081"]
May 20, 2017 7:22:36 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-nio-8010"]

最佳答案

我最近有同样的问题。冲突发生在pom.xml中,因为我同时包含了模仿所有和依赖核心。您必须检查您的pom.xml。

07-26 06:16