How to change default binding port on JBoss 3.x
3 years ago
Originally Published: 2005-06-01
Article Number
000057670
Applies To
JBoss AS 3.x
Issue
How to change default binding port on JBoss 3.x
Error: "java.net.BindException:address already in use: JVM_Bind:8080" encountered in stack trace when executing the run.bat script to start JBoss
Cause
Another service is already using the default port
Resolution
You can change the port that JBoss binds to by modifying all occurrences of "8080" in these 2 files:

  \<JBoss install dir>\server\default\deploy\jbossweb-tomcat50.sar\server.xml

  \<JBoss install dir>\server\default\deploy\http-invoker.sar\META-INF\JBoss-service.xml

Then run the run.bat script again.