服务器Tomcat v7.0服务器在本地主机启动失败

oiopk7p5  于 2022-11-13  发布在  其他
关注(0)|答案(2)|浏览(743)

服务器Tomcat v7.0服务器在localhost上启动失败。异常如下:

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
    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:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:756)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    ... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    ... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1128)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    ... 11 more
xn1cxnb4

xn1cxnb41#

服务器Tomcat v7.0服务器在本地主机启动失败
严重:无法在地址[localhost]和端口[8005](基本端口[8005]和偏移量[0])上创建服务器关闭套接字java.net。BindException:地址已在使用中
在扫描控制台之后,我得到了提示,并将shutdown套接字地址更改为其他地址

polhcujo

polhcujo2#

当我在eclipse中运行我的一个项目时,在我的tomcat7.0服务器上遇到了同样的问题。我发现我的项目没有commons-logging jar。在添加jar依赖项并再次运行项目后,错误消失了,tomcat服务器成功启动。

相关问题