Java News Tips Software
Java News Tips Software | Contact | Facebook | Twitter RSS

[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. Goto the deploy folder of the server instance you use.
2. Goto 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 wiill be available when JBoss is restarted.

Related: Change port in Tomcat?

Labels: ,


  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. thanks a lot
  4. Thank you!
  5. 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?
  6. 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
  7. Jboss-4.2.2 GA >>

    I was doing this with 4.0 and did not have a time to check with 4.2 yet.
  8. Thanks
  9. Thanks a lot
  10. Anonymous Anonymous on February 26, 2009 5:19 AM  
    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
  11. Anonymous Anonymous on March 04, 2009 1:25 PM  
    In 4.2.3 you will find the config file at jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml
  12. Anonymous Anonymous on August 17, 2009 5:57 PM  
    Hi Thank you very much.....
  13. Thanks
  14. U increased my knowledge..Thnx...
  15. 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-
  16. 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...
  17. Anonymous Anonymous on January 20, 2011 3:22 PM  
    yes.. its works thanks
  18. Anonymous Anonymous on January 17, 2012 4:31 AM  
    That Solved My Problem with JBOss ! I was Looking for a solution

    for long Time !

    Thank you very very Much
  19. Thank u very much i want looking for this kind of solution
  20. Anonymous Anonymous on June 22, 2015 5:12 PM  
    Very useful comment! Best Regards From Galicia!
  21. Hi ... Thank U very much..... its very useful to us
  22. thank you very much sir for port change
Page Views :
Email :
Select Month:
Free counter and web stats