Jenkins - Java Error while running in command prompt | Selenium Webdriver Tutorial with c# |Selenium C# training

Selenium C# Training Forum

Jenkins - Java Error while running in command prompt

S
Shreekanth Post on 28/01/2019

C:\Users\Talarisr02>java -jar C:\Users\Talarisr02\Desktop\2019Jenkins\jenkins.wa
r

Running above command and it throwing below error:

Any advise would be appreciated?

Running from: C:\Users\Talarisr02\Desktop\2019Jenkins\jenkins.war
webroot: $user.home/.jenkins
Jan 28, 2019 10:28:44 AM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @643ms to org.eclipse.jetty.util.log.JavaUtilLog
Jan 28, 2019 10:28:44 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
←[33mJan 28, 2019 10:28:44 AM org.eclipse.jetty.server.handler.ContextHandler se
tContextPath
WARNING: Empty contextPath
←[0mJan 28, 2019 10:28:44 AM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94
a92186989f695db2d7b21ebc51; jvm 1.8.0_181-b13
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.webapp.StandardDescriptorProcessor vi
sitServlet
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.session.DefaultSessionIdManage
r doStart
INFO: DefaultSessionIdManager workerName=node0
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.session.DefaultSessionIdManage
r doStart
INFO: No SessionScavenger set, using defaults
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.session.HouseKeeper startScave
nging
INFO: node0 Scavenging every 660000ms
Jenkins home directory: C:\Users\Talarisr02\.jenkins found at: $user.home/.jenki
ns
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.handler.ContextHandler doStart

INFO: Started w.@7486b455{Jenkins v2.150.2,/,file:///C:/Users/Talarisr02/.jenkin
s/war/,AVAILABLE}{C:\Users\Talarisr02\.jenkins\war}
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.AbstractConnector doStop
INFO: Stopped ServerConnector@9816741{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.session.HouseKeeper stopScaven
ging
INFO: node0 Stopped scavenging
Jan 28, 2019 10:28:45 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:388)
at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(
ContextHandler.java:960)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(
ServletContextHandler.java:571)
at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHa
ndler.java:937)
at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletCo
ntextHandler.java:381)
at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:
1503)
at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java
:1467)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler
.java:1004)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContext
Handler.java:297)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)

at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeC
ycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLif
eCycle.java:149)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerL
ifeCycle.java:170)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandl
er.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:462)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeC
ycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:310)
at winstone.Launcher.<init>(Launcher.java:197)
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:344)
at Main.main(Main.java:160)

Exception in thread "Jenkins initialization thread" java.lang.NoClassDefFoundErr
or: hudson/util/HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:247)
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(WebAppClassLoade
r.java:565)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Jan 28, 2019 10:28:45 AM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.@7486b455{Jenkins v2.150.2,/,null,UNAVAILABLE}{C:\Users\Talarisr
02\.jenkins\war}
Jan 28, 2019 10:28:45 AM winstone.Logger logInternal
INFO: Jetty shutdown successfully
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:186)
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:344)
at Main.main(Main.java:160)
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.openAcceptChannel(ServerConn
ector.java:339)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:30
7)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:235)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:395)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
at winstone.Launcher.<init>(Launcher.java:184)
... 7 more
←[31mJan 28, 2019 10:28:45 AM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:186)
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:344)
at Main.main(Main.java:160)
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.openAcceptChannel(ServerConn
ector.java:339)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:30
7)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:235)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:395)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
at winstone.Launcher.<init>(Launcher.java:184)
... 7 more

←[0m
C:\Users\

S
Shreekanth Reply on 29/01/2019

close this ticket. Fixed it