java - Jetty Seems to Ignore Port Argument -
i'm working through spring mvc examples, , using jetty jetty-9.1.1.v20140108 dev server. have server, jboss 5.1.0 listening on port 8080, tried specify alternate port jetty, however, didnt seem "stick". doing wrong here?
$ java -djetty.port=9000 -jar start.jar ... info: frameworkservlet 'spring-example': initialization completed in 142 ms 2014-02-05 17:27:50.369:info:oejsh.contexthandler:main: started o.e.j.w.webappcontext@45ad71f0{/spring-example,file:/tmp/jetty-0.0.0.0-8080-spring-example.war-_spring-example-any-1672792505692467455.dir/webapp/,available}{/spring-example.war} 2014-02-05 17:27:50.374:warn:oejuc.abstractlifecycle:main: failed serverconnector@228643af{http/1.1}{0.0.0.0:8080}: java.net.bindexception: address in use java.net.bindexception: address in use @ sun.nio.ch.net.bind0(native method) @ sun.nio.ch.net.bind(net.java:444) @ sun.nio.ch.net.bind(net.java:436) @ sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:214) @ sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:74) @ org.eclipse.jetty.server.serverconnector.open(serverconnector.java:279) @ org.eclipse.jetty.server.abstractnetworkconnector.dostart(abstractnetworkconnector.java:80) @ org.eclipse.jetty.server.serverconnector.dostart(serverconnector.java:218) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:69) ...
maybe there port setting takes priority, think command line trump all. how set port correctly?
according docs, set port application argument not system property: http://www.eclipse.org/jetty/documentation/current/quickstart-running-jetty.html
java -jar start.jar jetty.port=9000
Comments
Post a Comment