Hey,So I'm brand new to DropWizard and recently finished the "Getting Started portion" and have tweaked some code, but I can no longer get it to run. I have a custom Java application Run Configuration where the arguments are "server hello-world.yml" which is the name of my .yml file and whenever I try to run it (after running the mvn package) I get this
ARN [2013-07-18 20:24:30,857] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED InstrumentedBlocki...@0.0.0.0:8080: java.net.BindException: Address already in use: bind! java.net.BindException: Address already in use: bind! at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_21]! at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.7.0_21]! at org.eclipse.jetty.server.nio.BlockingChannelConnector.open(BlockingChannelConnector.java:127) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.nio.BlockingChannelConnector.doStart(BlockingChannelConnector.java:85) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.Server.doStart(Server.java:291) [jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]! at com.yammer.dropwizard.cli.ServerCommand.run(ServerCommand.java:48) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:39) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.Cli.run(Cli.java:53) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.Service.run(Service.java:61) [dropwizard-core-0.6.2.jar:na]! at service.HelloWorldService.main(HelloWorldService.java:15) [classes/:na]INFO [2013-07-18 20:24:30,866] org.eclipse.jetty.server.AbstractConnector: Started SocketC...@0.0.0.0:8081WARN [2013-07-18 20:24:30,867] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED org.eclipse.jetty.server.Server@76c14d67: java.net.BindException: Address already in use: bind! java.net.BindException: Address already in use: bind! at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_21]! at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.7.0_21]! at org.eclipse.jetty.server.nio.BlockingChannelConnector.open(BlockingChannelConnector.java:127) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.nio.BlockingChannelConnector.doStart(BlockingChannelConnector.java:85) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.Server.doStart(Server.java:291) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]! at com.yammer.dropwizard.cli.ServerCommand.run(ServerCommand.java:48) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:39) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.Cli.run(Cli.java:53) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.Service.run(Service.java:61) [dropwizard-core-0.6.2.jar:na]! at service.HelloWorldService.main(HelloWorldService.java:15) [classes/:na]ERROR [2013-07-18 20:24:30,867] com.yammer.dropwizard.cli.ServerCommand: Unable to start server, shutting down! java.net.BindException: Address already in use: bind! at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_21]! at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.7.0_21]! at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.7.0_21]! at org.eclipse.jetty.server.nio.BlockingChannelConnector.open(BlockingChannelConnector.java:127) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.nio.BlockingChannelConnector.doStart(BlockingChannelConnector.java:85) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.server.Server.doStart(Server.java:291) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]! at com.yammer.dropwizard.cli.ServerCommand.run(ServerCommand.java:48) ~[dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:39) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.cli.Cli.run(Cli.java:53) [dropwizard-core-0.6.2.jar:na]! at com.yammer.dropwizard.Service.run(Service.java:61) [dropwizard-core-0.6.2.jar:na]! at service.HelloWorldService.main(HelloWorldService.java:15) [classes/:na]INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown SocketC...@0.0.0.0:8081INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown InstrumentedBlocki...@0.0.0.0:8080INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,null}INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,file:/C:/Cisco%20Code/DropWizard/target/classes/}INFO [2013-07-18 20:24:32,921] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,file:/C:/Cisco%20Code/DropWizard/target/classes/}INFO [2013-07-18 20:24:32,921] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null}
Any suggestions?--
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/groups/opt_out.
first clue:! java.net.BindException: Address already in use: bindyou're already running the service, so it can't start again on the same port
if you can't find the window that's running it, kill java processes
On Thu, Jul 18, 2013 at 4:30 PM, Anon <ayer...@gmail.com> wrote:
Hey,So I'm brand new to DropWizard and recently finished the "Getting Started portion" and have tweaked some code, but I can no longer get it to run. I have a custom Java application Run Configuration where the arguments are "server hello-world.yml" which is the name of my .yml file and whenever I try to run it (after running the mvn package) I get this
ARN [2013-07-18 20:24:30,857] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED InstrumentedBlockingChannelConnec...@0.0.0.0:8080: java.net.BindException: Address already in use: bind
INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown InstrumentedBlockingChannelConnec...@0.0.0.0:8080
INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,null}INFO [2013-07-18 20:24:30,868] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,file:/C:/Cisco%20Code/DropWizard/target/classes/}INFO [2013-07-18 20:24:32,921] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,file:/C:/Cisco%20Code/DropWizard/target/classes/}INFO [2013-07-18 20:24:32,921] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null}
Any suggestions?