Maven - java.net.BindException: Address already in use -
i trying run following command in ubuntu 12.04
$ mvn jetty:run
and getting following error
2013-09-04 13:21:32.843::warn: failed selectchannelconnector@0.0.0.0:8080 java.net.bindexception: address in use @ sun.nio.ch.net.bind(native method) @ sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:124) @ sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:59) @ org.mortbay.jetty.nio.selectchannelconnector.open(selectchannelconnector.java:205) @ org.mortbay.jetty.nio.selectchannelconnector.dostart(selectchannelconnector.java:304) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:39) @ org.mortbay.jetty.server.dostart(server.java:233) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:39) @ org.mortbay.jetty.plugin.jetty6pluginserver.start(jetty6pluginserver.java:132) @ org.mortbay.jetty.plugin.abstractjettymojo.startjetty(abstractjettymojo.java:371) @ org.mortbay.jetty.plugin.abstractjettymojo.execute(abstractjettymojo.java:307) @ org.mortbay.jetty.plugin.abstractjettyrunmojo.execute(abstractjettyrunmojo.java:203) @ org.mortbay.jetty.plugin.jetty6runmojo.execute(jetty6runmojo.java:184) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) 2013-09-04 13:21:32.845::warn: failed server@13a9192b java.net.bindexception: address in use @ sun.nio.ch.net.bind(native method) @ sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:124) @ sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:59) @ org.mortbay.jetty.nio.selectchannelconnector.open(selectchannelconnector.java:205) @ org.mortbay.jetty.nio.selectchannelconnector.dostart(selectchannelconnector.java:304) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:39) @ org.mortbay.jetty.server.dostart(server.java:233) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:39) @ org.mortbay.jetty.plugin.jetty6pluginserver.start(jetty6pluginserver.java:132) @ org.mortbay.jetty.plugin.abstractjettymojo.startjetty(abstractjettymojo.java:371) @ org.mortbay.jetty.plugin.abstractjettymojo.execute(abstractjettymojo.java:307) @ org.mortbay.jetty.plugin.abstractjettyrunmojo.execute(abstractjettyrunmojo.java:203) @ org.mortbay.jetty.plugin.jetty6runmojo.execute(jetty6runmojo.java:184) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) [info] jetty server exiting. [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 2.856s [info] finished at: wed sep 04 13:21:32 gmt 2013 [info] final memory: 4m/68m [info] ------------------------------------------------------------------------ [error] failed execute goal org.mortbay.jetty:maven-jetty-plugin:6.1.10:run (default-cli) on project seventh: failure: address in use -> [help 1]
on checking 8080 port output
$ lsof -i:8080 $ lsof -i:80 command pid user fd type device size/off node name chrome 4683 gaurav 122u ipv4 102461 0t0 tcp gaurav-vpcea24fm.local:60146->stackoverflow.com:http (established) chrome 4683 gaurav 195u ipv4 93101 0t0 tcp gaurav-vpcea24fm.local:54759->stackoverflow.com:http (established)
my question
why getting error , how rid of this?
tomcat running on port 8080. detected typing localhost:8080
in browser.
it surprising lsof -i:8080
not detect it.
Comments
Post a Comment