Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to change port while JBoss is HTTP Server?

 
angelo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Jboss 3.2.1 , as HTTP server , how to make port 80 instead of 8080 ?
 
Pauline McNamara
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch angelo.
Your display name doesn't quite fit the famous JavaRanch naming policy. Could you please take a minute to change your display name to show 2 names, preferably your real name. (It's all about maintaining our professional image - don't let the one-eyed moose fool you!).
Thanks and hope you'll be visiting the ranch often,
Pauline
 
Andrew Perepelytsya
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Angelo.
Go to the $JBOSS_HOME/server/$<your_config>/deploy dir and edit the tomcat41-service.xml file. Scroll down and you'll see an HTTP Connector section. change the 8080 port to the desired one. You can also tweak all other advanced params as needed.
Yes, and change the name to reflect your full one, don't be shy
 
Andrew Perepelytsya
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as you are using the 3.2.1 version, you might need to edit the /jbossweb-tomcat.sar/META-INF/jboss-service.xml file in the deploy dir.
SAR are service archives and are just zips with the extension changed.
so, you unpack, edit, repack. or you could deploy it exploded - just unpack it to a jbossweb-tomcat.sar directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic