This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss server started . java.net.bind exception ; address is already in use" Watch "jboss server started . java.net.bind exception ; address is already in use" New topic
Author

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

sheethal Kumar choppari
Greenhorn

Joined: Jun 23, 2012
Posts: 16
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
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Are you sure that you are editing the correct configuration item? It looks like you're setting the configuration in the wrong place, if JBoss doesn't pick up the change.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
sheethal Kumar choppari
Greenhorn

Joined: Jun 23, 2012
Posts: 16
i modified run.bat under bin. and added jndi data source in mssql-ds.xml ( docs\examples\jca). coming to version , am trying to start jboss 4.0.1 on windows7 ( is it compatible?).
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

What service and port is it complaining about?

WP
sheethal Kumar choppari
Greenhorn

Joined: Jun 23, 2012
Posts: 16
the port which is assigned to jboss, on the same port java.exe is running.( i feel ,java.exe is running nothing but jboss is running) , and all the ports which are being used by jboss are also becoming active , like http port, rmi port,
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

It sounds like JBoss is already running. Bear in mind java.exe will be used to run JBoss so if it is already using this port, the server is probably already up. Can you access the URL http://localhost:8080?
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

It sounds like JBoss is already running. Bear in mind java.exe will be used to run JBoss so if it is already using this port, the server is probably already up. Can you access the URL http://localhost:8080?
sheethal Kumar choppari
Greenhorn

Joined: Jun 23, 2012
Posts: 16
yes. after looking that server started msg, i tried localhost:8080/jmx-console& localhost:8080, there is no response. there are other ports which are associated with jboss are also becoming active ( like rmi , ajp,,). ,,,,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jboss server started . java.net.bind exception ; address is already in use
 
Similar Threads
JVM_BIND Exception in JBOSS-Port already in use.
how to stop jboss server
problem in java.net.Bind Exception
Listening Ports
jboss server started . java.net.bind exception ; address is already in use