Continuous Integration, Java, Jenkins, SubVersion, Uncategorized, version control

Jenkins- Address already in use

In this post, I will be sharing a solution of error which is very common while starting up Jenkins.

Aug 03, 2018 1:41:25 AM winstone.Logger logInternal
SEVERE: Container startup failed Failed to start Jetty
at winstone.Launcher.<init>(
at winstone.Launcher.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at Main._main(
at Main.main(
Caused by: Address already in use
at Method)
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(
at org.eclipse.jetty.server.ServerConnector.doStart(
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
at org.eclipse.jetty.server.Server.doStart(
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
at winstone.Launcher.<init>(
… 7 more


Command used to start Jenkins :-

  1. Open Console.
  2. Go to the folder containing jenkins war.
  3. Run this command java -jar jenkins.war

This will run Jenkins on local host with default port i.e. 8080

Check by hitting the browser with this URL localhost:8080 



  • This is an issue of using same address again while running Jenkins, should be solved by changing the port from the one already in use. For this one can use httpPort as an argument while deploying Jenkins war on the machine, like this:-

java -jar jenkins.war –httpPort=8081

  • Another way can be by killing the Jenkins server which is already running and start a new one.

Command- ps -ef | grep jenkins

kill -9 “Instance id”

Or CTRL+ SPACE to kill already running console.

Check the browser once again by hitting localhost:8080

This should show up Jenkins up and be running if everything is fine and error otherwise.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s