File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 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
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14144
    
  18

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: 17
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: 859

What service and port is it complaining about?

WP
sheethal Kumar choppari
Greenhorn

Joined: Jun 23, 2012
Posts: 17
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: 1020
    
    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: 1020
    
    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: 17
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,,). ,,,,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss server started . java.net.bind exception ; address is already in use