3 Replies Latest reply on Sep 4, 2010 12:13 PM by Tran Nghia

    cannot access jboss server on the host machine--urgent!

    Tran Nghia Newbie

      Hi everyone!

       

      I am doing a project involving jboss application server. The host machine run on linux with jboss 5.0.0.CR2. Host machine's name is abc-desktop. The application helloapp.war is deployed in the default server. I tried starting the server in the host machine with either one of the following commands: 

                            run.sh -b <host machine's ip>

      or

                            run.sh -b 0.0.0.0

       

      To access the host machine from other computer, I type the following in the firefox:  http://abc-desktop:8080/helloapp/sayhello

      However FireFox says "Server not found" or other kinds of error messages.

       

      Can you give some insight ?



        • 1. Re: cannot access jboss server on the host machine--urgent!
          Nathan Boyce Newbie

          I would first check to see if you have any java process running with $ps aux |grep [j]ava . If jboss is running it should show up. You may have more than one jboss instance running.

           

          If you see jboss running you can use $netstat -ln |grep 8080 to see if you have anything listening on port 8080. $sudo netstat -pln |grep 8080 would give you the pid of the process listening on port 8080.

           

           

          Which linux distro are you running on?

          • 2. Re: cannot access jboss server on the host machine--urgent!
            Peter Johnson Master

            >>The host machine run on linux with jboss 5.0.0.CR2.

            Do not use this version - it is a very old beta of 5.x and has numerous issues. You really should be using 5.1.0.GA.

             

            >>FireFox says "Server not found"

            1) From your client machine, can you ping the host machine using the hostname:

             

            ping abc-desktop

             

            2) Again from the client, can you ping the IP address:

             

            ping xxx.xxx.xxx.xxx

             

            If you can ping the IP address but not the hostname, then the hostname is not registered in the DNS (you can work around this by adding the host machine to your /etc/hosts file on the client). If you cannot ping by IP address, then there is some other network issue. Either way, talk to your network admin to resolve this.

             

            If the pings work, then check your /etc/hosts file on the client and on the host - most likely the hosts file on the host is incorrect.

             

            Another possibility: check that port 8080 is open in the firewall.

             

            Another possiility: what OS are you running? Does your Linux dirto come with the SELinux security software? If so, it could also be blocking the requests.

            • 3. Re: cannot access jboss server on the host machine--urgent!
              Tran Nghia Newbie

              Thanks everyone for your help. I found out the cause which is port 8080 not open in the firewall.