1 2 3 Previous Next 32 Replies Latest reply on Jan 20, 2011 11:45 AM by rajeshkumarp Go to original post
      • 15. Localhost not working even when my jboss server is up
        dimitris

        Could it be that Windows Defender is blocking access?

        • 16. Localhost not working even when my jboss server is up
          rajeshkumarp

          I checked Windows Defender. It didnt block my server or jdk. I am very much fed up with this issue.

          • 17. Re: Localhost not working even when my jboss server is up
            jboss_user_101

            A long shot, but have you tried starting JBOSS with

             

             

            run -b 0.0.0.0

             

             

            so it binds to all interfaces, and then try browsing to either 192.168.1.10 or localhost (127.0.0.1)

             

            http://127.0.0.1:8080 or http://localhost:8080 or http://192.168.1.10:8080

            • 18. Localhost not working even when my jboss server is up
              nickarls

              Can you run a standalone tomcat on the host? Or any other socket-creating java-stuff (google for some simple socket server programming sample code)?

              • 19. Localhost not working even when my jboss server is up
                peterj

                Let me try to summarize:

                 

                a) Using "-b 192.168.1.10" works, but anything else (leaving off the -b (which for JBoss AS 4.0.5 is the same as entering "-b 0.0.0.0"), or using "-b 127.0.0.1" (which is the same as "-b localhost")) does not work (you get the "SocketException: select failed" error).

                 

                b) You have tried another app (an RMI app) and got the same error.

                 

                c) The problem occurs on Windows 7 with JDK 6u20. But on XP everything works OK.

                 

                Let me know if the above summary is correct.

                 

                What do you mean by "But when i tried http://192.168.1.10:8080 the browser keep on loading and there is no error message in my server.". Are you saying that you did not get the JBoss AS home page? If not, was the JBoss AS configuration changed to remove the home page (that could account for it not showing up). Did you try a page that you know would show?

                 

                I can think of two other things to try.

                 

                First, lets make sure that you are not picking up some bad JAR files. To do this, add "-verbose:class" to the JAVA_OPTS in run.bat. Then when you start JBoss AS, redirect stdout to a file. Add the file to you response (you'll need to click on the "Use Advanced Editor" link above the reply box to attach a file). The -verbose:class directive causes the JVM to print out the class and its JAR file for each class loaded - I will be looking for unexpected JAR files.

                 

                Second, it appears that using your systems IP address works just fine but localhost does not. It seems like loopback is not working. Try installing the loopback adapter as per this web page:

                http://www.windowsreference.com/windows-7/how-to-install-a-loopback-adapter-in-windows-7/

                • 20. Localhost not working even when my jboss server is up
                  rajeshkumarp

                  Hi Peter,

                   

                  Your summary is absolutely correct.

                   

                  I mean that when i try http://192.168.1.10:8080 while starting the server by run -b 192.168.1.10 , I didn't get the "SocketException : select failed" error in my server. At the same time I didn't get the Jboss home page also.

                  I tried http://192.168.1.10:8080/jmx-console also. I didn't get any errors and also I didn't get the console page.

                   

                  As per your suggestion, I tried the second one. I installed the loopback adapter, but still I get the same error. (SocketException)

                   

                  And I need little more procedure for doing your first suggestion.

                  • 21. Localhost not working even when my jboss server is up
                    nickarls

                    Tried the standalone tomcat? I predict it fails, too.

                    • 22. Re: Localhost not working even when my jboss server is up
                      peterj
                      And I need little more procedure for doing your first suggestion.

                      It would help if you told me specifically which part of the instructions you did not understand. So I will assume that you don't know anything and will give you details of every step along the way.

                       

                      Open run.bat with a text editor and locate the lines where JAVA_OPTS is set (there will be several of them). Add the -verbose:class to any of them. For example,:

                       

                      set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -verbose:class

                       

                      Save the file. Then from the command prompt, in the jboss_home/bin directory enter:

                       

                      run >> output.txt 2>&1

                       

                      You can open the output.txt file with a text editior (probably not notepad, you might need a better editor such as Notepad++) or if you have some *nix utilities the tail utility can help you monitor the file. You want to wait until either you get the error message or you get the "started in xxx seconds" message. Then in the Command Prompt window (the one you used  to start JBoss AS) type CTRL-C to shut down the app server. Wait until it is down and the command prompt returns.

                       

                      Attach the output.txt file to your post. You will need click the "Use advanced editor" link in the upper right hand corner of the reply box. On the advanced editor there is an Attach Files area below the reply box. Click the browse button and locate the jboss_home/bin/output.txt file. (It might help if you zipped the file first - do you need instaructions for that also?)

                      • 23. Re: Localhost not working even when my jboss server is up
                        rajeshkumarp

                        Hi Peter,

                         

                        Thank you for your brief explanation. I have attached the output.txt file .

                        • 24. Localhost not working even when my jboss server is up
                          nickarls

                          JBOSS_HOME: D:\jboss-4.0.5.GA\bin\\..

                           

                          the ending looks a bit strange to me..

                           

                          JAVA_OPTS:  -Dprogram.name=run.bat-verbose:class -ser

                           

                          not sure the verbose took effect (looks merged with the program name)

                          • 25. Localhost not working even when my jboss server is up
                            peterj

                            Fix the issue with -verbose:classes that Nikolas pointed out and post the file again.

                             

                            BTW, the JBOSS_HOME setting is OK. Weird looking, but correct.

                            • 26. Localhost not working even when my jboss server is up
                              rajeshkumarp

                              ===============================================================================

                               

                                JBoss Bootstrap Environment

                               

                                JBOSS_HOME: D:\jboss-4.0.5.GA\bin\\..

                               

                                JAVA: D:\Program Files\Java\jdk1.6.0_20\bin\java

                               

                                JAVA_OPTS:  -Dprogram.name=run.bat-verbose:class -ser -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:NewSize=128m -XX:MaxNewSize=384m -XX:PermSize=128m -XX:MaxPermSize=128m -Xmx512m -Xms512m -XX:+DisableExplicitGC

                               

                                CLASSPATH: D:\Program Files\Java\jdk1.6.0_20\lib\tools.jar;D:\jboss-4.0.5.GA\bin\\run.jar

                               

                              ===============================================================================

                               

                              Could not create the Java virtual machine.

                              Unrecognized option: -ser

                              Press any key to continue . . .

                               

                               

                              I get this error when i changed like this

                              JAVA_OPTS:  -Dprogram.name=run.bat-verbose:class -ser

                               

                              D:\jboss-4.0.5.GA\bin>java -version

                              java version "1.6.0_20"

                              Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

                              Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

                               

                              This is my java version

                              • 27. Re: Localhost not working even when my jboss server is up
                                peterj

                                That is not what Nicklas meant. He pointed out that there was no space between "-Dprogram.name=run.bat" and "-verbose:class" in the JAVA_OPTS, which is why the -verbose:class was ignored. So get rid of what you did and fix your first attempt by adding a space in front of "-verbose:class".

                                • 28. Re: Localhost not working even when my jboss server is up
                                  rajeshkumarp

                                  I have altered the space correctly and attached the output.txt file .

                                  • 29. Localhost not working even when my jboss server is up
                                    nickarls

                                    I didn't see anything horribly wrong.

                                     

                                    Have you tried running a standalone Tomcat? Have you tried running another JBoss AS (e.g. 6 Final)? Have you tried running it with another JRE?