当前位置:  开发笔记 > 运维 > 正文

打开jenkins.war时出错

如何解决《打开jenkins.war时出错》经验,为你挑选了2个好方法。

我已经通过安装程序安装了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.(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.(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.(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.(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.(Jenkins.java:815)
        at hudson.model.Hudson.(Hudson.java:85)
        at hudson.model.Hudson.(Hudson.java:81)
        at hudson.WebAppMain$3.run(WebAppMain.java:225)

?[0m
C:\Program Files\Java\jdk1.8.0\jre\bin>

Avihoo Mamka.. 5

已经有一些应用程序绑定端口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端口.



1> Avihoo Mamka..:

已经有一些应用程序绑定端口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端口.



2> 小智..:
java -jar jenkins.war --httpPort=8081

或除默认端口以外的任何其他端口都可以解决此问题。为我工作。

推荐阅读
跟我搞对象吧
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有