6 Replies Latest reply on Jan 29, 2010 2:53 PM by Peter Johnson

    Cannot access Jboss in LAN

    Rahul Kulkarni Newbie
      Hi I have installed jboss 4.3.2 on fedora 11. After I install and start the jboss, I am able to access the sever by typing htp://localhost:8080 or http://127.0.0.1,, but, when I try to access it from other computer within the LAN lie http://192.168.1.5:8080 , I am unable to access the application server. I started jboss by giving the binding address like "./run.sh -b 192.168.1.2" but even that has not helping. I want to know how can I access the application server from any other computer on LAN or WAN.
        • 1. Re: Cannot access Jboss in LAN
          Peter Johnson Master

          Sounds like a firewall issue to me. Make sure port 8080 is open.

           

          Also, you might want to use "-b 0.0.0.0". If you use "-b 192.168.1.2" then any requests from localhost will not work.

           

          Finally, is there a typo here:

          "http://192.168.1.5:8080"

          "./run.sh -b 192.168.1.2"

          • 2. Re: Cannot access Jboss in LAN
            Mark Kliethermes Newbie

            I have a similar problem with JBoss-5.1.0 on Fedora Core 12 with Java 1.6.  I am trying to configure a new i-net CrystalClear report server.  My apologies if I do not have the correct terminology but this is what i know.

             

            1. When entering the url for the report, I can display the report properly  on the SERVER browser in a Java Viewer

            2. When entering the url on the LAN or outside I get http 500 error.

             

             

            description The server encountered an internal error ()  that prevented it from fulfilling this request.

            exception

            javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/inet/report/ReportServletJSP
                 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:257)
                 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

            root cause

            java.lang.NoClassDefFoundError: com/inet/report/ReportServletJSP

              .....................

             

            root cause

            java.lang.ClassNotFoundException: com.inet.report.ReportServletJSP

            ....................

             

            3. From the LAN it appears that things are correctly configured

                 a. I can display an html page in my report.war folder (exploded)

                 b. I can display a jsp page in my report.war  (exploded)

             

            4. I agree that this could be a firewall issue in the i-net CrystalClear uses port 9000 but I verified that this port is open

                 # iptables -L -n

                 ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:9000
                 ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:9000

             

            5. From the error it is obvious that it cannot find ReportServletJSP from the outside.  I don't understand why would it be able to see it from the SERVER (inside) and not outside of the server?

             

            Can you suggest what else I should test or focus on?

             

            Thanks for your trouble.

            • 3. Re: Cannot access Jboss in LAN
              Peter Johnson Master

              Let me ask some questions to clarify this statement:

               

              "When entering the url for the report, I can display the report properly  on the SERVER browser in a Java Viewer"

               

              Are you saying that if you open a browser on the same system running JBoss AS and enter a URL such as http://localhost:8080/myapp/xxx then everything works correctly and you see the desired web page?

               

              "When entering the url on the LAN or outside I get http 500 error."

               

              Are you saying that is you open a browser on another system and enter a URL such as http://hostname:8080/myapp/xxx, then you get the 500 error?

               

              Based on the exception stack you posted, I would suspect that it would never work because the missing class, com/inet/report/ReportServletJSP, should happen in either instance. Where is this class located in your WAR?

               

              Finally, the exception you posted is what appears in the browser. There should be a corresponding exception (or even several exceptions) in the console log, could you post those.
              • 4. Re: Cannot access Jboss in LAN
                Mark Kliethermes Newbie

                This is for those that follow.

                 

                I continued to pursue the problem and this is what i did for a solution.

                 

                1. Removed the default java version installed with FedoraCore installation.

                2. I had installed JAVA under a non root account for JBoss installation

                3. Configured a java.sh file to configure the server java environment to point my local ava install for JBoss

                         (http://vietpad.sourceforge.net/javaonlinux.html).

                4. verfied that i had only one java version running (java -version)

                 

                Saddness as the above did not completely fix the problem.

                 

                5. I have seen other posts that this was not required but as a reminant of my MS experience, I rebooted the server.

                6. After reboot, restarted JBoss

                   sh ./run.sh &

                 

                No luck

                     I could not even get the JBoss console to appear in my browser.

                 

                7. Shutdown and restarted JBoss with

                     sh ./run.sh -b  999.999.999.99  (server IP address).

                 

                8.  My remote connections to the server work properly and I can display my CrystalClear reports.

                 

                9. Now I am a HAPPY GUY andI will leave it to the experts to explain why this worked / did not work.

                • 5. Re: Cannot access Jboss in LAN
                  Mark Kliethermes Newbie

                  Hi Peter,

                  The answer is yes it would work on the server that held JBoss and when i went to a different system, I would get the Http 500 error.

                   

                  In the console, I would receive information about the connection/report when I ran the URL on the server housing JBoss but I would receive nothing when I tried the different system.

                   

                  I have a follow up post on how I resolved the issue.  I probably made a basic neophyte error by having two Java versions running because I know just about enough to either get myself in and out of trouble.

                   

                  I posted the details because my gut says someone out there will make the same mistake that I did.  I would appreciate it if you would comment on my 'solution' and address it as a learning / teaching opportunity.

                   

                  Thank you

                  • 6. Re: Cannot access Jboss in LAN
                    Peter Johnson Master

                    I know you ran into this issue:

                    https://community.jboss.org/wiki/JBoss42FAQ

                     

                    Also, I don't know exactly which JDK you used initially, but the GNU JDK that comes with most Linux distros cannot handle JBoss AS, or any app server for that matter. So it is good that you installed a Sun JDK.