localhost上的服务器Tomcat v8.5服务器无法在Eclipse中启动

时间:2017-05-20 16:21:19

标签: java eclipse tomcat localhost ubuntu-14.04

我正在尝试在Eclipse中的Tomcat上运行我的应用程序,但是我得到在localhost上的服务器Tomcat v8.5服务器无法启动。错误。 我已经尝试了一切。我甚至在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"]

1 个答案:

答案 0 :(得分:1)

我最近遇到了同样的问题。冲突发生在pom.xml中,因为我同时包含了mockito-all和mockito-core依赖项。你必须检查你的pom.xml。