Skip to main content

[JBoss 4] How to change port 8080 in JBoss?

With default configurations, JBoss listens on port 8080 for web connections. But this can be changed easily as this port is defined in an configuration xml file.

This is how port 8080 is changed on JBoss 4

  1. Go to the deploy folder of the server instance you use.
  2. Go to the jbossweb-tomcat55.sar inside that deploy folder.
  3. Find the file named server.xml inside that folder. (tomcat service file).

Look for the HTTP Connector section inside the server.xml where 8080 configuration is available. Change the port value to what ever the required port number.

This change will be applied only when JBoss is restarted.


  1. Your suggestion is very useful to me.
    Thank you,
    My Friend

  2. Thank you very much for your help. It's good resource for newbies

  3. This is all well and good if you have a tomcat.sar file.
    I've just downloaded Jboss-4.2.2 GA and it doesn't have this.
    Yet it's failing to start because I have another app server that's already using that port (8080).
    So how do I make a mod?

  4. bonjour
    g fait l'intégration de JBPM sous éclipse, et le déploiement se fait sous tomcat.
    si quelqu'un peut me donner code java pour:
    -récupérer la liste des scénarios workflow
    -déclenchement d'un scénario
    -passage d'un état au suivant

  5. Jboss-4.2.2 GA >>

    I was doing this with 4.0 and did not have a time to check with 4.2 yet.

  6. Does anybody know how to change the default port 8080 of the jmx-console and the web-console, i'm running the version 4.2.3 in Sun OS

  7. In 4.2.3 you will find the config file at jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml

  8. Hi Thank you very much.....

  9. U increased my knowledge..Thnx...

  10. Hey kamal, good article.

    One more point to add to your's:
    Suppose port is changed to 8090.
    To check whether JBoss is working at the changed port - 8090:
    Open a browser.
    Type in http://localhost:8090
    You should get the JBoss home page.

    Happy Jbossing-

  11. Thanks a ton for your valuable post.
    It solved my problem that i had been looking for days.
    And that too in very simple steps and most important VERY CLEARLY :)
    Thanks Again...

  12. yes.. its works thanks

  13. That Solved My Problem with JBOss ! I was Looking for a solution

    for long Time !

    Thank you very very Much

  14. Thank u very much i want looking for this kind of solution

  15. Very useful comment! Best Regards From Galicia!

  16. Hi ... Thank U very much..... its very useful to us

  17. thank you very much sir for port change


Post a Comment

We appreciate your opinions, suggestions and criticism.

Popular posts from this blog

Web Services with Apache Axis 1.4 Tutorial: server and client sides

Java Sorting: Comparator vs Comparable Tutorial

Creative Commons License Digizol by Kamal Mettananda is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License .
URL of this page must be supplied in attribution
© 2004-2017