2017-10-27 1 views
1

Windows에서 Jenkins 2.73.1을 사용하고 있습니다.전쟁 파일을 실행할 때 Jenkins 설치 문제가 발생했습니다.

C:\Program Files (x86)\Jenkins>java -jar jenkins.war 
Running from: C:\Program Files (x86)\Jenkins\jenkins.war 
webroot: $user.home/.jenkins 
[33mOct 28, 2017 12:01:28 AM Main deleteWinstoneTempContents 
WARNING: Failed to delete the temporary Winstone file C:\Users\user\AppData\Local\Temp\winstone\jenkins.war 
[0mOct 28, 2017 12:01:28 AM org.eclipse.jetty.util.log.Log initialized 
INFO: Logging initialized @1490ms to org.eclipse.jetty.util.log.JavaUtilLog 
Oct 28, 2017 12:01:28 AM winstone.Logger logInternal 
INFO: Beginning extraction from war file 
[33mOct 28, 2017 12:01:28 AM org.eclipse.jetty.server.handler.ContextHandler setContextPath 
WARNING: Empty contextPath 
[0mOct 28, 2017 12:01:28 AM org.eclipse.jetty.server.Server doStart 
INFO: jetty-9.4.z-SNAPSHOT 
Oct 28, 2017 12:01:31 AM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet 
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet 
Oct 28, 2017 12:01:31 AM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart 
INFO: DefaultSessionIdManager workerName=node0 
Oct 28, 2017 12:01:31 AM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart 
INFO: No SessionScavenger set, using defaults 
Oct 28, 2017 12:01:31 AM org.eclipse.jetty.server.session.HouseKeeper startScavenging 
INFO: Scavenging every 660000ms 
Jenkins home directory: C:\Users\user\.jenkins found at: $user.home/.jenkins 
Oct 28, 2017 12:01:33 AM org.eclipse.jetty.server.handler.ContextHandler doStart 
INFO: Started [email protected]{/,file:///C:/Users/user/.jenkins/war/,AVAILABLE}{C:\Users\user\.jenkins\war} 
Oct 28, 2017 12:01:33 AM org.eclipse.jetty.server.AbstractConnector doStop 
INFO: Stopped [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} 
Oct 28, 2017 12:01:33 AM org.eclipse.jetty.server.session.HouseKeeper stopScavenging 
INFO: Stopped scavenging 
Oct 28, 2017 12:01:33 AM hudson.WebAppMain contextDestroyed 
INFO: Shutting down a Jenkins instance that was still starting up 
java.lang.Throwable: reason 
     at hudson.WebAppMain.contextDestroyed(WebAppMain.java:390) 
     at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898) 
     at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545) 
     at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873) 
     at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355) 
     at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1507) 
     at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1471) 
     at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927) 
     at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271) 
     at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569) 
     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) 
     at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:142) 
     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:160) 
     at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124) 
     at org.eclipse.jetty.server.Server.doStop(Server.java:523) 
     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) 
     at winstone.Launcher.shutdown(Launcher.java:307) 
     at winstone.Launcher.<init>(Launcher.java:167) 
     at winstone.Launcher.main(Launcher.java:354) 
     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 Main._main(Main.java:294) 
     at Main.main(Main.java:132) 

Oct 28, 2017 12:01:33 AM org.eclipse.jetty.server.handler.ContextHandler doStop 
INFO: Stopped [email protected]{/,null,UNAVAILABLE}{C:\Users\user\.jenkins\war} 
Exception in thread "Jenkins initialization thread" java.lang.NoClassDefFoundError: hudson/util/HudsonFailedToLoad 
     at hudson.WebAppMain$3.run(WebAppMain.java:249) 
Caused by: java.lang.ClassNotFoundException: hudson.util.HudsonFailedToLoad 
     at java.net.URLClassLoader.findClass(Unknown Source) 
     at java.lang.ClassLoader.loadClass(Unknown Source) 
     at java.lang.ClassLoader.loadClass(Unknown Source) 
     at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560) 
     at java.lang.ClassLoader.loadClass(Unknown Source) 
     ... 1 more 
Oct 28, 2017 12:01:33 AM winstone.Logger logInternal 
INFO: Winstone shutdown successfully 
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(Unknown Source) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
     at java.lang.reflect.Method.invoke(Unknown Source) 
     at Main._main(Main.java:294) 
     at Main.main(Main.java:132) 
Caused by: 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.ServerConnector.open(ServerConnector.java:298) 
     at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) 
     at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) 
     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
     at org.eclipse.jetty.server.Server.doStart(Server.java:431) 
     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
     at winstone.Launcher.<init>(Launcher.java:154) 
     ... 7 more 
[31mOct 28, 2017 12:01:33 AM 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(Unknown Source) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
     at java.lang.reflect.Method.invoke(Unknown Source) 
     at Main._main(Main.java:294) 
     at Main.main(Main.java:132) 
Caused by: 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.ServerConnector.open(ServerConnector.java:298) 
     at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) 
     at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) 
     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
     at org.eclipse.jetty.server.Server.doStart(Server.java:431) 
     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
     at winstone.Launcher.<init>(Launcher.java:154) 
     ... 7 more 

[0m 

누구든지 도와 드릴까요 : 젠킨스를 설치하는 명령 아래 실행시

java -jar jenkins.war 

나는 오류 다음 얻을?

답변

2

글쎄, 스택 트레이스에서 문제를 일으킬 가능성이있는 몇 가지 사항이 있습니다. 특히이 두 :

Exception in thread "Jenkins initialization thread" java.lang.NoClassDefFoundError: hudson/util/HudsonFailedToLoad 
Caused by: java.lang.ClassNotFoundException: hudson.util.HudsonFailedToLoad 

와 기본적으로

java.io.IOException: Failed to start Jetty 
Caused by: java.net.BindException: Address already in use: bind 

는, 여기 젠킨스가 결합하려고하는 포트가 이미 사용하고 있다는 것을 첫 번째 두 가지 문제가있다, 시도하고 사용하고 알아낼 포트 부두는 (보통 나의 기억이 봉사하는 경우에 80 8080)에 묶고 싶을 것입니다.

두 번째 문제는 던져려는 예외에 대한 클래스를 찾을 수 없다는 것입니다. 클래스가 당으로 클래스 패스

0

에서 누락 왜 그렇게 줄 방법을 잘 모르겠어요

, 나는 포트를 확보하고 문제가 사라지는 지 확인하고, 경우에하는 알아낼 것입니다 내 분석에서 Jenkins는 기본값 인 포트 번호를 8080으로 사용하려고 시도합니다. 포트 번호 (8080)가 이미 Tomcat이나 Oracle 또는 다른 것과 같은 다른 프로세스로 점유되어 있기 때문에이 문제가 발생합니다.

jenkins.war을 실행하는 동안 내 자신의 포트 번호를 기본 포트 번호보다 높였습니다. 성공적으로 실행되었고 모든 메타 데이터를 성공적으로 다운로드했습니다. HTTPS에 대한

java -jar jenkins.war --httpPort=9090 

: 당신은 HTTP을 위해 내가 포트를 통과하고 방법 아래의 명령,

을 볼 수 있습니다

java -jar jenkins.war --httpsPort=9090 

참고 :가 처음에 나는 심지어 얼굴이 ClassNotFountException 새 포트 번호로 시도 할 때 예외가 생기지 않습니다.

관련 문제