6 Replies Latest reply on Feb 17, 2011 11:04 PM by wdfink

    cant hit jboss pages externally

    hoffm263

      I have jboss 6.0 running a web application I am developing. I am able to hit the pages using localhost:8080 but not my external IP address from another computer (I found my ip address using http://www.whatismyip.com/). I have port forwarding correctly set up to port 8080 and port 80 on my router. I have tested with apache tomcat 7.0 and quickweb webserver and I am able to deploy pages to those servers and hit them from another computer with my external IP address in a matter of minutes with no additional setup.

       

      I was under the impression that jboss 6.0 has a built in tomcat web server. Not sure if there is some configuration I need to do to make my site visible externally. I dont have registered domain name yet but I should be able to hit with my IP addy.

       

      Ive come here after a few frustrating hours of searching google web so please no "search google" answers or I might cry. 

       

      If there is no built in web server what server / configuration is recommended? I need something free and fast to configure for a low traffic site with a j2ee jboss backend.

        • 1. cant hit jboss pages externally
          wdfink

          How do you start the JBoss?

          AFAIK JB6 start with bind to localhost (as in 5.x).

          If you run vie run.sh you should use '-b 0.0.0.0' or '-b <your IP>'.

           

          A simple test might to use local the URL <myIP>:8080

          • 2. cant hit jboss pages externally
            hoffm263

            Thanks for such a fast reply! I am running windows 7 64 bit. I start the server through my development environment (Eclipse) server management pane right now. I will try to run directly through the command line. Do you know the syntax for running it in windows?

            • 3. cant hit jboss pages externally
              hoffm263

              That helped alot actually!

               

              I am able to run the server through the command "run.bat -b 0.0.0.0" and I am able to get the server console from the external ip address. I can then deploy the war using the web console and hit the site also with the external IP address.

               

              Sorry to add one additional question since that technically solved the problem. Where can I add that parameter so I can start a configuration in eclipse and have it correctly set?

               

              I set this in the run.bat file and I can run from the command line without adding the parameters:

              set JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=0.0.0.0

               

              But the launch configuration from eclipse doesnt seem to use this batch file - Any idea on how to set that up?

              • 4. cant hit jboss pages externally
                hoffm263

                Ok I found that I can set the value when I create the server - I just set the "server host name" option to "0.0.0.0" and everything works now! I can deploy from eclipse and hit it externally!

                 

                Thanks a bunch for pointing me in the right direction.

                • 5. cant hit jboss pages externally
                  wdfink

                  Hmm, I'm not sure about, I did not use ecplipse integration to start JBoss ;-(

                  But the -b option is a parameter of the jboss.Main class, so do you might find additional parameters of JBoss start ...

                  • 6. cant hit jboss pages externally
                    wdfink

                    no problem, your welcome within the community ;-)