打开jenkins.war时出错(Error while opening jenkins.war)

编程入门 行业动态 更新时间:2024-10-25 14:30:17
打开jenkins.war时出错(Error while opening jenkins.war)

我已经通过安装程序安装了Jenkins。 当我执行jenkins.war文件时,我遇到了以下错误。 我关闭了使用8080端口的XAMPP。 仍显示此错误。 谁能建议如何解决这个问题?

C:\Program Files\Java\jdk1.8.0\jre\bin>java -jar jenkins.war Running from: C:\Program Files\Java\jdk1.8.0\jre\bin\jenkins.war webroot: $user.home/.jenkins Dec 10, 2015 12:22:43 PM winstone.Logger logInternal INFO: Beginning extraction from war file Dec 10, 2015 12:22:44 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: jetty-winstone-2.8 Dec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Jenkins home directory: C:\Users\dgulhane\.jenkins found at: $user.home/.jenkins ←[33mDec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Add ress 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(Net.java:414) at sun.nio.ch.Net.bind(Net.java:406) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne lConnector.java:187) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector. java:316) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha nnelConnector.java:265) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.server.Server.doStart(Server.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at Main._main(Main.java:293) at Main.main(Main.java:98) ←[0m←[33mDec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: FAILED org.eclipse.jetty.server.Server@757942a1: 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(Net.java:414) at sun.nio.ch.Net.bind(Net.java:406) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne lConnector.java:187) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector. java:316) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha nnelConnector.java:265) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.server.Server.doStart(Server.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at Main._main(Main.java:293) at Main.main(Main.java:98) ←[0mDec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: stopped w.{,file:/C:/Users/dgulhane/.jenkins/war/},C:\Users\dgulhane\.jenk ins\war Dec 10, 2015 12:22:45 PM winstone.Logger logInternal INFO: Winstone shutdown successfully ←[31mDec 10, 2015 12:22:45 PM winstone.Logger logInternal SEVERE: Container startup failed java.io.IOException: Failed to start Jetty at winstone.Launcher.<init>(Launcher.java:156) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at Main._main(Main.java:293) at Main.main(Main.java:98) Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:414) at sun.nio.ch.Net.bind(Net.java:406) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne lConnector.java:187) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector. java:316) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha nnelConnector.java:265) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.server.Server.doStart(Server.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) ... 7 more ←[0m←[31mDec 10, 2015 12:22:46 PM hudson.util.BootFailure publish SEVERE: Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: java.lang.InterruptedException at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:502) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:267) at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) at jenkins.model.Jenkins.executeReactor(Jenkins.java:916) at jenkins.model.Jenkins.<init>(Jenkins.java:815) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:225) ←[0m C:\Program Files\Java\jdk1.8.0\jre\bin>

I have installed Jenkins through installer. I'm getting below error when I'm executing jenkins.war file. I have closed XAMPP which was using 8080 port. Still showing this error. Can anyone suggest how to resolve this?

C:\Program Files\Java\jdk1.8.0\jre\bin>java -jar jenkins.war Running from: C:\Program Files\Java\jdk1.8.0\jre\bin\jenkins.war webroot: $user.home/.jenkins Dec 10, 2015 12:22:43 PM winstone.Logger logInternal INFO: Beginning extraction from war file Dec 10, 2015 12:22:44 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: jetty-winstone-2.8 Dec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Jenkins home directory: C:\Users\dgulhane\.jenkins found at: $user.home/.jenkins ←[33mDec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Add ress 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(Net.java:414) at sun.nio.ch.Net.bind(Net.java:406) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne lConnector.java:187) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector. java:316) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha nnelConnector.java:265) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.server.Server.doStart(Server.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at Main._main(Main.java:293) at Main.main(Main.java:98) ←[0m←[33mDec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: FAILED org.eclipse.jetty.server.Server@757942a1: 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(Net.java:414) at sun.nio.ch.Net.bind(Net.java:406) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne lConnector.java:187) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector. java:316) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha nnelConnector.java:265) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.server.Server.doStart(Server.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at Main._main(Main.java:293) at Main.main(Main.java:98) ←[0mDec 10, 2015 12:22:45 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: stopped w.{,file:/C:/Users/dgulhane/.jenkins/war/},C:\Users\dgulhane\.jenk ins\war Dec 10, 2015 12:22:45 PM winstone.Logger logInternal INFO: Winstone shutdown successfully ←[31mDec 10, 2015 12:22:45 PM winstone.Logger logInternal SEVERE: Container startup failed java.io.IOException: Failed to start Jetty at winstone.Launcher.<init>(Launcher.java:156) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at Main._main(Main.java:293) at Main.main(Main.java:98) Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:414) at sun.nio.ch.Net.bind(Net.java:406) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChanne lConnector.java:187) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector. java:316) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectCha nnelConnector.java:265) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.server.Server.doStart(Server.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) ... 7 more ←[0m←[31mDec 10, 2015 12:22:46 PM hudson.util.BootFailure publish SEVERE: Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: java.lang.InterruptedException at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:502) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:267) at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) at jenkins.model.Jenkins.executeReactor(Jenkins.java:916) at jenkins.model.Jenkins.<init>(Jenkins.java:815) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:225) ←[0m C:\Program Files\Java\jdk1.8.0\jre\bin>

最满意答案

已经有一些应用程序绑定端口8080 。

正如日志所说:

WARNING: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Add ress already in use: bind java.net.BindException: Address already in use: bind

尝试检查哪个应用程序正在使用该端口并将其关闭,或者更改Jenkins配置上的Jenkins端口。

There's already some application binding port 8080.

As the log says:

WARNING: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Add ress already in use: bind java.net.BindException: Address already in use: bind

Try to check which application is using that port and shut it down, or alternatively, change Jenkins port on the Jenkins configuration.

更多推荐

本文发布于:2023-04-28 03:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329826.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:war   jenkins   opening   Error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!