NutzCN Logo
问答 nuzt-book-project执行doStart - Started o.e.j.w.WebAppContext@告错
发布于 1851天前 作者 qq_fde051ea 1534 次浏览 复制 上一个帖子 下一个帖子
标签:

各位大佬:
请问以下错误是什么原因导致的

17:25:32.633 INFO (ContextHandler.java:855) doStart - Started o.e.j.w.WebAppContext@3104f7bd{/,[file:///home/program/myprj/nutz-book-project/nutzcn-adminlte/target/classes/static/, file:///home/program/myprj/nutz-book-project/nutzcn-luat/target/classes/static/, file:///home/program/myprj/nutz-book-project/nutzcn-webapp/target/classes/webapp/],AVAILABLE}
17:25:32.641 ERROR (NbApp.java:220) execute - something happen!!
java.io.IOException: Failed to bind to /0.0.0.0:8080
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:308) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipse.jetty.server.Server.doStart(Server.java:394) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:138) ~[nutzboot-starter-jetty-2.3-20190108.025306-83.jar:2.3-SNAPSHOT]
at org.nutz.boot.AppContext.startServers(AppContext.java:306) ~[nutzboot-core-2.3-20190108.025252-85.jar:2.3-SNAPSHOT]
at org.nutz.boot.NbApp.execute(NbApp.java:206) [nutzboot-core-2.3-20190108.025252-85.jar:2.3-SNAPSHOT]
at org.nutz.boot.NbApp.run(NbApp.java:178) [nutzboot-core-2.3-20190108.025252-85.jar:2.3-SNAPSHOT]
at net.wendal.nutzbook.MainLauncher.main(MainLauncher.java:30) [classes/:?]
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_121]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_121]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_121]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_121]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[?:1.8.0_121]
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
... 11 more
17:25:32.659 INFO (AbstractConnector.java:341) doStop - Stopped ServerConnector@7baf6acf{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}

6 回复

用main方法启动

8080被其他程序占用了

@wendal 大佬您好 nutzboot-starter-jetty使用8080端口吗?因为8080被其他程序占用,所以这个nutz-book-project就运行不起来了,搞了这个错误,能把这个jetty的端口给改了吗?

配置文件里面有版本号 jetty.port 或 server.port

能请教下是哪一个配置文件,我好像没找到

添加回复
请先登陆
回到顶部