Thursday, 19 January 2017

How to Change Default Ports in JBoss Application Server ?

Hello everyone,

After successful installation of Jboss application server I was getting below error in the server logs. And it's the port conflict. Because already some services running on the port 8080 it was showing
 
Caused by: LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use /127.0.0.1:8080




To resolve this issue you need to change the default ports of the Jboss application server or else you can stop the processes on the ports which were configure on Jboss.

But as it always recommend that never use the default ports on any application server as good practice of avoiding security hazards/vulnerability issues. Here I am listing down the steps to change the default ports of Jboss standalone profile.  


Procedure:


Go to the below location
/<JBOSS_HOME>/standalone/configuration/

Take a backup of the file standalone.xml or after change you can find the original file at
/<JBOSS_HOME>/standalone/configuration/standalone_xml_history/standalone.initial.xml

Open the file and edit the ports in <socket-binding-group /> tab. You can refer the below screen shot



Restart the Jboss service and check if new ports are updated.




Hope this will help you. Kindly comment for your suggestion and quires.   

"Effort only fully releases its reward after a person refuses to quit.”

 Regards,

No comments:

Post a Comment

Popular Posts