java - SocketConnector 8081 - Address Already in use -
i trying run 2 dropwizard server applications on 2 different ports 8080 , 9000.the first application starts keep getting below exception when try run on port 9000. not understanding why 2 ports being used application , how enforce application use different port number second port
info [2014-03-22 17:17:28,031] org.eclipse.jetty.server.abstractconnector: started instrumentedblockingchannelconnector@0.0.0.0:9000 warn [2014-03-22 17:17:28,033] org.eclipse.jetty.util.component.abstractlifecycle: failed socketconnector@0.0.0.0:8081: java.net.bindexception: address in use ! java.net.bindexception: address in use ! @ org.eclipse.jetty.server.bio.socketconnector.newserversocket(socketconnector.java:96) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312] ! @ org.eclipse.jetty.server.bio.socketconnector.open(socketconnector.java:85) ~[jetty- server-8.1.10.v20130312.jar:8.1.10.v20130312] ! @ org.eclipse.jetty.server.abstractconnector.dostart(abstractconnector.java:316) ~ [jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312] ! @ org.eclipse.jetty.server.bio.socketconnector.dostart(socketconnector.java:156) ~ [jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312] ! @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312] ! @ org.eclipse.jetty.server.server.dostart(server.java:291) [jetty-server- 8.1.10.v20130312.jar:8.1.10.v20130312] ! @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312] ! @ com.yammer.dropwizard.cli.servercommand.run(servercommand.java:48) [dropwizard-core- 0.6.2.jar:na] ! @ com.yammer.dropwizard.cli.environmentcommand.run(environmentcommand.java:39) [dropwizard-core-0.6.2.jar:na] ! @ com.yammer.dropwizard.cli.configuredcommand.run(configuredcommand.java:58) [dropwizard-core-0.6.2.jar:na] ! @ com.yammer.dropwizard.cli.cli.run(cli.java:53) [dropwizard-core-0.6.2.jar:na] ! @ com.yammer.dropwizard.service.run(service.java:61) [dropwizard-core-0.6.2.jar:na] ! @ com.paypal.demandgen.places.indexing.indexingserver.main(indexingserver.java:96) [classes/:na] warn [2014-03-22 17:17:28,034] org.eclipse.jetty.util.component.abstractlifecycle: failed or
dropwizard serves 2 sites: main site, , admin site on different port. admin section allows view metrics , healthchecks on site.
in instance, problem due admin client, default runs on port 8081. need set -ddw.http.adminport=9001
(for instance)
Comments
Post a Comment