ERROR [2014-09-22 17:32:25,897] io.dropwizard.cli.ServerCommand: Unable to start server, shutting down
! java.net.BindException: Address already in use
! at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_40]
! at sun.nio.ch.Net.bind(Net.java:444) ~[na:1.7.0_40]
! at sun.nio.ch.Net.bind(Net.java:436) ~[na:1.7.0_40]
! at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) ~[na:1.7.0_40]
! at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_40]
! at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:264) ~[dropwizard-0.1.0.jar:0.1.0]
! at org.eclipse.jetty.setuid.SetUIDListener.lifeCycleStarting(SetUIDListener.java:200) ~[dropwizard-0.1.0.jar:0.1.0]
! ... 8 common frames omitted
! Causing: java.lang.RuntimeException: java.net.BindException: Address already in use
! at org.eclipse.jetty.setuid.SetUIDListener.lifeCycleStarting(SetUIDListener.java:213) ~[dropwizard-0.1.0.jar:0.1.0]
! at org.eclipse.jetty.util.component.AbstractLifeCycle.setStarting(AbstractLifeCycle.java:187) ~[dropwizard-0.1.0.jar:0.1.0]
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[dropwizard-0.1.0.jar:0.1.0]
! at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:43) ~[dropwizard-0.1.0.jar:0.1.0]
! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43) [dropwizard-0.1.0.jar:0.1.0]
! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76) [dropwizard-0.1.0.jar:0.1.0]
! at io.dropwizard.cli.Cli.run(Cli.java:70) [dropwizard-0.1.0.jar:0.1.0]
! at io.dropwizard.Application.run(Application.java:72) [dropwizard-0.1.0.jar:0.1.0]
--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, yes it is, if you look at the core documentation section on the site you will see something like this:
Note
You can override configuration settings by passing special Java system properties when starting your application. Overrides must start with prefix dw., followed by the path to the configuration value being overridden.
For example, to override the Logging level, you could start your application like this:
java -Ddw.logging.level=DEBUGserver my-config.json
This will work even if the configuration setting in question does not exist in your config file, in which case it will get added.
You can override configuration settings in arrays of objects like this:
java -Ddw.server.applicationConnectors[0].port=9090server my-config.json
I'm not in front of a machine now but as it's the admin port that is clashing you will want to choose array position 1 (I think, off the top of my head). Otherwise just add the port you want to your yaml file in the appropriate section.
Michael
--
You received this message because you are subscribed to a topic in the Google Groups "dropwizard-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dropwizard-user/wA2AH8O4FfQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dropwizard-us...@googlegroups.com.