How to change port 8080 in JBOSS 5 ?

I am using JBOSS 5 for my latest project. I was stuck when oracle instance was required in project because both JBOSS and oracle instance run on port 8080.

So i decided to change JBOSS port to 8776. Here are the steps i followed.

My JBOSS is installed in D:\jboss5

  • Go to the D:\jboss5\server\default\deploy\jbossweb.sar folder
  • Open the server.xml file inside that folder.
  • Search for “<Connector protocol=”HTTP/1.1″ port=”8080″ address=”${jboss.bind.address}” connectionTimeout=”20000″ redirectPort=”8443″ />”
  • Once you find this tag, change the port number 8080 to whatever you want. In my case i changed it to 8776.
  • Restart JBOSS5.

Now the JBOSS runs on 8776 as defined by me.

This entry was posted in JAVA and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted February 25, 2009 at 7:16 am | Permalink

    Doesn’t work for me.

    I had to change the file

    …/jboss/jboss-5.0.0.GA/server/default/conf/bootstrap/bindings.xml

    and there the property with name port:

    9090

  2. Posted February 26, 2009 at 1:59 am | Permalink

    I did work for me.

    Changing port in “

    did the tirck .

  3. Ben
    Posted April 2, 2009 at 12:56 am | Permalink

    Thank you Devang for writing this, it worked for me. Cheers, Ben

  4. Posted July 14, 2009 at 9:41 am | Permalink

    To change port, you just only call: run -Djboss.service.binding.set=”ports-01″

    Refer to this link for more detail: http://javatip4u.blogspot.com/2009/06/changing-jboss-5-port.html

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*