开发者社区> 问答> 正文

jetty 7启动时加上jetty.xml报错?报错

jetty 7启动时加上jetty.xml报错(java -jar start.jar etc/jetty.xml):

2015-07-08 16:49:12.113:WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8081: java.net.BindException:
 Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
        at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.Server.doStart(Server.java:292)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
        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.eclipse.jetty.start.Main.invokeMain(Main.java:473)
        at org.eclipse.jetty.start.Main.start(Main.java:615)
        at org.eclipse.jetty.start.Main.main(Main.java:96)
2015-07-08 16:49:12.143:WARN:oejuc.AbstractLifeCycle:FAILED org.eclipse.jetty.server.Server@28e51e50: java.net.BindExcep
tion: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)



不加就能启动成功,咋回事?

展开
收起
爱吃鱼的程序员 2020-06-14 14:46:19 811 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    不是名写的吗<divclass="linenumber1index0alt2">2015-07-0816:49:12.113:WARN:oejuc.AbstractLifeCycle:FAILEDSelectChannelConnector@0.0.0.0:8081:java.net.BindException:<divclass='ref'>

    引用来自“_________0”的评论

    <divclass="linenumber1index0alt2">2015-07-0816:49:12.113:WARN:oejuc.AbstractLifeCycle:FAILEDSelectChannelConnector@0.0.0.0:8081:java.net.BindException:

    2020-06-14 14:46:34
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关课程

更多

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载