The httpPort command line arguments begins with two dashes, rather than the
single dash that you included.

Mark Waite

On Fri, Aug 19, 2016 at 8:04 AM Miguel Alver <[email protected]> wrote:

> I'm trying to initialize Jenkins on windows using cmd and it seems it's
> not launching because port 8080 is already in use. I'm trying to start it
> in another port using:
> java -jar jenkins.war -httpPort=6000 --httpListenAddress=127.0.0.1
> but then I see:
> FAILED [email protected]:8080
> so it seems like changing the port doesn't make any effect.
>
> Here is the output I get:
>
> C:\JENKINS>java -jar jenkins.war -httpPort=6000
> --httpListenAddress=127.0.0.1
> Running from: C:\JENKINS\jenkins.war
> webroot: $user.home/.jenkins
> Aug 19, 2016 3:38:13 PM winstone.Logger logInternal
> INFO: Beginning extraction from war file
> Aug 19, 2016 3:38:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: jetty-winstone-2.9
> Aug 19, 2016 3:38:16 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\mverdu\.jenkins found at:
> $user.home/.jenkins
> ←[33mAug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog warn
> WARNING: FAILED [email protected]:8080:
> java.net.BindException: A
> ddress 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:433)
>         at sun.nio.ch.Net.bind(Net.java:425)
>         at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> 223)
>         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:156)
>         at winstone.Launcher.main(Launcher.java:356)
>         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:498)
>         at Main._main(Main.java:307)
>         at Main.main(Main.java:98)
>
> ←[0m←[33mAug 19, 2016 3:38:16 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:433)
>         at sun.nio.ch.Net.bind(Net.java:425)
>         at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> 223)
>         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:156)
>         at winstone.Launcher.main(Launcher.java:356)
>         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:498)
>         at Main._main(Main.java:307)
>         at Main.main(Main.java:98)
>
> ←[0mAug 19, 2016 3:38:16 PM hudson.WebAppMain contextDestroyed
> INFO: Shutting down a Jenkins instance that was still starting up
> java.lang.Throwable: reason
>         at hudson.WebAppMain.contextDestroyed(WebAppMain.java:400)
>         at
> org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler
> .java:823)
>         at
> org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContext
> Handler.java:160)
>         at
> org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:518)
>
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeC
> ycle.java:89)
>         at
> org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper
> .java:107)
>         at org.eclipse.jetty.server.Server.doStop(Server.java:343)
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeC
> ycle.java:89)
>         at winstone.Launcher.shutdown(Launcher.java:309)
>         at winstone.Launcher.<init>(Launcher.java:169)
>         at winstone.Launcher.main(Launcher.java:356)
>         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:498)
>         at Main._main(Main.java:307)
>         at Main.main(Main.java:98)
>
> Aug 19, 2016 3:38:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: stopped
> w.{,file:/C:/Users/mverdu/.jenkins/war/},C:\Users\mverdu\.jenkins\
> war
> Aug 19, 2016 3:38:16 PM winstone.Logger logInternal
> INFO: Winstone shutdown successfully
> ←[31mAug 19, 2016 3:38:16 PM winstone.Logger logInternal
> SEVERE: Container startup failed
> java.io.IOException: Failed to start Jetty
>         at winstone.Launcher.<init>(Launcher.java:158)
>         at winstone.Launcher.main(Launcher.java:356)
>         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:498)
>         at Main._main(Main.java:307)
>         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:433)
>         at sun.nio.ch.Net.bind(Net.java:425)
>         at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> 223)
>         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:156)
>         ... 7 more
>
> ←[0m←[31mAug 19, 2016 3:38:17 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:937)
>         at jenkins.model.Jenkins.<init>(Jenkins.java:818)
>         at hudson.model.Hudson.<init>(Hudson.java:83)
>         at hudson.model.Hudson.<init>(Hudson.java:79)
>         at hudson.WebAppMain$3.run(WebAppMain.java:225)
>
>
> Can anybody help me with this?
>
> Regards,
>
> Miguel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/dda85823-bc11-4fce-9801-20aa569f21ab%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/dda85823-bc11-4fce-9801-20aa569f21ab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGm81T2jsLGqfuaU-nH-TXxGG-W5%3DkU9NBckHfmVrOnQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to