2008
06.09

Most of the time when you run JBoss Application server right out of the box it starts up on port 8080 and listens on localhost ip, i.e. 127.0.0.1 which you can not connect from a remote machine. To clearly find out on which IP address your JBoss AS is running , you may to check the last few lines of the standard jboss console log. The lines may look something like below.

18:03:18,892 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
18:03:19,078 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
18:03:19,109 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 1m:39s:421ms

In the above log snippet, the server is listening on port 8080 and is only bound to ip address “127.0.0.1″ which happens to the loopback/localhost and is not accessible from any other machine.

In order to make the JBoss http server available from other machines on the network, you should start the server with an option “-b” and providing a specific IP. Change to the jboss bin directory and execute the run.sh script with -b option as below

#> cd $JBOSS_HOME/bin
replace the XXX below with the actual ip of the machine you are running
#>./run.sh -b XXX.XXX.XXX.XXX

After the server has started fully the IP address you passed in as an argument should be the one on which JBoss is listening. In my case its XXX.XXX.XXX.XXX

18:14:02,935 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-172.XXX.XXX.XXX-8080
18:14:03,026 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-172.30.21.163-8009
18:14:03,051 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 1m:46s:490ms

Now this jboss installation should be accessible from other machines over the network.

No Comment.

Add Your Comment