丶达
2016-12-18 08:00
采纳率: 100%
浏览 1.2k
已采纳

mac上配置好了tomcat,访问主页是空白页,改了很多次端口号还是一样,截了一些控制台信息

org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-nio-10241"]
java.net.BindException: Address already in use

org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-10241]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-10241]]

org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["ajp-nio-8009"]
java.net.BindException: Address already in use

[main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]

[localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]

[localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory /usr/local/apache-tomcat-8.5.9/webapps/docs
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]

[localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]]

localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory /usr/local/apache-tomcat-8.5.9/webapps/host-manager
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/host-manager]]

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • 丶达 2016-12-19 01:52
    已采纳

    已解决,我重新下了个jdk就好了,原本的java会一直占用tomcat的端口,谢谢各位了。

    点赞 打赏 评论
  • chenl_ 2016-12-18 15:52

    是不是起了多个tomcat

    点赞 打赏 评论
  • blownewbee 2016-12-18 16:37

    java.net.BindException: Address already in use
    地址使用了,tomcat当前实例换一个ip地址,或者换一个端口。

    点赞 打赏 评论

相关推荐 更多相似问题