Embedded Error Address Already In Use Maven
Contents |
here for a quick overview
Failed Selectchannelconnector Address Already In Use
of the site Help Center Detailed answers to any questions you
Windows Who Is Using Port 8080
might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Jetty Caused By Java.net.bindexception Address Already In Use
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of failure: address already in use 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven - java.net.BindException: Address already in use up vote 2 down vote favorite 1 I am trying to run the following command in Ubuntu 12.04 $ mvn jetty:run and getting the following error 2013-09-04 13:21:32.843::WARN: failed SelectChannelConnector@0.0.0.0:8080 java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:371) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:307) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more java.net.bindexception address already in use bind jenkins about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges how to run jenkins on different port Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each change jetty port other. Join them; it only takes a minute: Sign up Address already in use (Maven site plugin, site:run) up vote 0 down vote favorite Seems like the Maven site plugin does not have a command to stop before http://stackoverflow.com/questions/18615514/maven-java-net-bindexception-address-already-in-use starting, resulting in an error if the Jetty container is already started (from previous Maven site:run), how may i solve this? My goal is to be able to see the site on my localhost using the site:run Maven command. Maven site plugin [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.0.1:run (default-cli) on project parameterized-logging-migrator: Error executing Jetty: Address already in use: bind -> 2011-12-21 20:41:11.463::INFO: Shutdown hook executing 2011-12-21 20:41:11.567::INFO: Shutdown hook complete maven share|improve this question asked Dec 21 http://stackoverflow.com/questions/8590084/address-already-in-use-maven-site-plugin-siterun '11 at 12:50 Oh Chin Boon 10.3k3090162 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted mvn site:run does not have any option to shutdown an existing jetty server. If you do not want to manually do this before another run, one possibility is to run it on another port mvn site:run -Dport=8081 share|improve this answer answered Dec 21 '11 at 13:16 Raghuram 36.2k56896 Thanks, does it mean if I change this to another port, I do not have to manually stop it? –Oh Chin Boon Dec 21 '11 at 13:44 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged maven or ask your own question. asked 4 years ago viewed 2291 times active 4 years ago Related 500How do I tell Maven to use the latest version of a dependency?372Force maven update582How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds1Maven Site / Project Info Reports Plugins Produce Empty Dependency Report1Maven - issue running mvn help:effective-pom0connecting SVN through ma
Sign in Pricing https://github.com/OAuth-Apis/apis/issues/19 Blog Support Search GitHub This repository Watch 83 Star 471 Fork 253 OAuth-Apis/apis Code Issues 31 Pull requests 1 Projects 0 Pulse Graphs New issue java.net.BindException: Address already in use #19 Closed agarwlGaurav opened this Issue Sep 1, address already 2013 · 8 comments Projects None yet Labels question Milestone No milestone Assignees No one assigned 3 participants agarwlGaurav commented Sep 1, 2013 On cd apis-authorization-server-war mvn jetty:run Getting the following error 2013-09-01 18:41:27.021:WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8080: address already in java.net.BindException: Address already in use java.net.BindException: Address already in use gvanderploeg commented Sep 2, 2013 Sounds to me like you have another process that's bound to port 8080. Another http server (or maybe another run of the same webapp in another terminal window/IDE) that was started perhaps? The components of Apis itself all bind to different ports so they should not conflict. agarwlGaurav commented Sep 2, 2013 Tried lsof -i:80 lsof -i:8080 No result. See complete stacktrace below 2013-09-02 10:35:56.622:WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:182) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.Server.doStart(Server.java:273) at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.mortbay.jetty.plu