Tomcat服务器无法启动-也尝试更改连接端口

时间:2019-10-05 11:52:14

标签: tomcat server

我是使用Tomcat Tomcat服务器的初学者。我陷入了这个错误,请帮助我摆脱这个问题。

2019年10月5日17:06:41.121 INFO [main] org.apache.coyote.AbstractProtocol.init初始化ProtocolHandler [“ http-nio-8088”] 2019年10月5日17:07:23.154严重[main] org.apache.catalina.util.LifecycleBase.handleSubClassException无法初始化组件[Connector [HTTP / 1.1-8088]]         org.apache.catalina.LifecycleException:协议处理程序初始化失败                 在org.apache.catalina.connector.Connector.initInternal(Connector.java:983)                 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)                 在org.apache.catalina.core.StandardService.initInternal(StandardService.java:533)                 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)                 在org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1059)                 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)                 在org.apache.catalina.startup.Catalina.load(Catalina.java:584)                 在org.apache.catalina.startup.Catalina.load(Catalina.java:607)                 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处                 在sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)                 在sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)                 在java.lang.reflect.Method.invoke(未知来源)                 在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:304)                 在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)         原因:java.io.IOException:无法建立回送连接                 在sun.nio.ch.PipeImpl $ Initializer.run(未知来源)                 在sun.nio.ch.PipeImpl $ Initializer.run(未知来源)                 在java.security.AccessController.doPrivileged(本机方法)                 在sun.nio.ch.PipeImpl。(来源不明)                 在sun.nio.ch.SelectorProviderImpl.openPipe(未知来源)                 在java.nio.channels.Pipe.open(未知来源)                 在sun.nio.ch.WindowsSelectorImpl。(未知源)                 在sun.nio.ch.WindowsSelectorProvider.openSelector(未知源)                 在java.nio.channels.Selector.open(未知来源)                 在org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector(NioSelectorPool.java:52)                 在org.apache.tomcat.util.net.NioSelectorPool.close(NioSelectorPool.java:119)                 在org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:343)                 在org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1129)                 在org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1137)                 在org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:574)                 在org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:74)                 在org.apache.catalina.connector.Connector.initInternal(Connector.java:980)                 ...另外13个         原因:java.net.ConnectException:连接超时:connect                 在sun.nio.ch.Net.connect0(本机方法)                 在sun.nio.ch.Net.connect(未知来源)                 在sun.nio.ch.Net.connect(未知来源)                 在sun.nio.ch.SocketChannelImpl.connect(未知源)                 在java.nio.channels.SocketChannel.open(未知来源)                 在sun.nio.ch.PipeImpl $ Initializer $ LoopbackConnector.run(未知源)                 ...另外30个 2019年10月5日17:07:23.164信息[主] org.apache.coyote.AbstractProtocol.init初始化ProtocolHandler [“ ajp-nio-8008”] 2019年10月5日17:08:05.196严重[main] org.apache.catalina.util.LifecycleBase.handleSubClassException无法初始化组件[Connector [AJP / 1.3-8008]]         org.apache.catalina.LifecycleException:协议处理程序初始化失败                 在org.apache.catalina.connector.Connector.initInternal(Connector.java:983)                 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)                 在org.apache.catalina.core.StandardService.initInternal(StandardService.java:533)                 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)                 在org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1059)                 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)                 在org.apache.catalina.startup.Catalina.load(Catalina.java:584)                 在org.apache.catalina.startup.Catalina.load(Catalina.java:607)                 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处                 在sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)                 在sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)                 在java.lang.reflect.Method.invoke(未知来源)                 在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:304)                 在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)         原因:java.io.IOException:无法建立回送连接                 在sun.nio.ch.PipeImpl $ Initializer.run(未知来源)                 在sun.nio.ch.PipeImpl $ Initializer.run(未知来源)                 在java.security.AccessController.doPrivileged(本机方法)                 在sun.nio.ch.PipeImpl。(来源不明)                 在sun.nio.ch.SelectorProviderImpl.openPipe(未知来源)                 在java.nio.channels.Pipe.open(未知来源)                 在sun.nio.ch.WindowsSelectorImpl。(未知源)                 在sun.nio.ch.WindowsSelectorProvider.openSelector(未知源)                 在java.nio.channels.Selector.open(未知来源)                 在org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector(NioSelectorPool.java:52)                 在org.apache.tomcat.util.net.NioSelectorPool.close(NioSelectorPool.java:119)                 在org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:343)                 在org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1129)                 在org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1137)                 在org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:574)                 在org.apache.catalina.connector.Connector.initInternal(Connector.java:980)                 ...另外13个         原因:java.net.ConnectException:连接超时:connect                 在sun.nio.ch.Net.connect0(本机方法)                 在sun.nio.ch.Net.connect(未知来源)                 在sun.nio.ch.Net.connect(未知来源)                 在sun.nio.ch.SocketChannelImpl.connect(未知源)                 在java.nio.channels.SocketChannel.open(未知来源)                 在sun.nio.ch.PipeImpl $ Initializer $ LoopbackConnector.run(未知源)                 ...还有29个

1 个答案:

答案 0 :(得分:0)

已解决的问题:我知道我的防病毒防火墙正在阻止tomcat服务器在指定的端口地址上启动,因此我只是禁用了我的防病毒防火墙启动tomcat服务器。现在可以正常工作了。