File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes jboss 4.2.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss 4.2.2" Watch "jboss 4.2.2" New topic

jboss 4.2.2

pankaj goswami

Joined: Oct 10, 2007
Posts: 16
hi friends. i have jboss 4.2.2 ,i want to know how i change port number of it. because by default it uses 8080. but on 8080 i am running tomcat. i looked so many xml files in its directory but i am not able to find out. so please help me to change port number of jboss application server.

thank you for all your support i got from all of you.
michel dughlas

Joined: Oct 31, 2007
Posts: 6
Hi pankaj in this file you can change the port number from 8080 to any thing. try it.


<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"/>
chaitanya kiran pvn

Joined: Nov 01, 2007
Posts: 25

this is venkat i am also facing this problem after that i look into the all xml files in that directory i made some changes in server.xml file. this file is in jboss\server\default\deploy\tomcatweb-tomcat55.sar\server.xml.
please modifiy like this .the default is 8080 you can change it to any port which is not working for any other servers.


try this and you get goodresult.

Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Talking strictly for JBoss 4.2.2, there would be no directory named as tomcatweb-tomcat55.sar or jbossweb-tomcat55.sar. You have to change the port no. in the file server.xml under /server/default/deploy/jboss-web.deployer/. Furthermore, you might need to change the port 8009 to something else in the same file for Coyote HTTP/1.1.

Alvaro Guerrero

Joined: Jun 11, 2006
Posts: 2
Hi, in JBoss 4.2.2 the file is: server.xml in
change the line:
<Connector port="8081" address="${jboss.bind.address}"
for use the 8081 port intead of 8080
I agree. Here's the link:
subject: jboss 4.2.2
It's not a secret anymore!