wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes jboss server started .  java.net.bind exception ; address is already in use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic

jboss server started . java.net.bind exception ; address is already in use

sheethal Kumar choppari

Joined: Jun 23, 2012
Posts: 17
i am trying to start my local jboss server,before that i modified run.bat file suitable to my environment and also configured jndi data source to local server( here my datasource is remote MSSQL Server database). i see the that jboss server is started , above that it is also showing "java.net.bind exception ;port is already in use " . getting same response even after changing port number to other . then i figured out that java.exe is running on same port. i colsed that(java.exe) application again started server , but no change in response

here what is happening is , when we are trying to start server with one port , whatever the port number that we gave to jboss , the same port is being used by java.exe(java.exe is starting ) while starting server.so jboss can not use that port anymore.(but i can see 'jboss started') can anyone help me to make it run

thanks in advance
Peter Johnson

Joined: May 14, 2008
Posts: 5838

Please post the full error message so that we know which port is in use.

Also, see if this helps: https://community.jboss.org/wiki/DebugBindException

By the way, the java.exe process is probably the one running JBoss AS.

JBoss In Action
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10240

Please do not create multiple threads for the same discussion. I'm closing this one since the other thread http://www.coderanch.com/t/584924/JBoss/jboss-server-started-java-net has more participants involved. You should take a look at the wiki article Peter pointed to, for debugging issues like these.

[My Blog] [JavaRanch Journal]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: jboss server started . java.net.bind exception ; address is already in use