12 Replies Latest reply on May 6, 2010 10:20 AM by jaikiran pai

    Canot connect to JBoss Web Server

    Christian Huber Newbie

      Hi,

      i am just starting to evaluate JBoss AS for my personal needs. I already installed it on my notebook successfully, so I wanted to set it up on my workstation as well (both Windows XP.

      I downloaded the binary distribution 5.1.0.GA and unzipped it to my hard drive and set the jboss_home variable. Starting the run script looks good, no errors or anything weird. But when I try to call the JBoss Web Console via http://localhost:8080 I get a "can't connect" message from my browser.

      Freiwall is disabled, antivirus does not block anything and when i start some other server application on port 8080 i can connect to it with the corresponding client. Furthermore when both applications are running i don't get any bind errors so it looks like JBoss does not bind to that port for some reason.

      In the boot.log of the default server I found this exception:

      03:55:18,328 DEBUG [ProfileServiceBootstrap] Failed to build ManagedDeployment for: AbstractKernelDeployment@738dcb{name=file:/D:/Tools/jboss-5.1.0.GA/server/default/conf/bootstrap/logging.xml installed=true beanFactories=[AbstractBeanMetaData@6212dd{name=LogBridgeHandler bean=org.jboss.logbridge.LogBridgeHandler properties= constructor=null autowireCandidate=true}]}
      org.jboss.deployers.spi.DeploymentException: Error deploying: file:/D:/Tools/jboss-5.1.0.GA/server/default/conf/bootstrap/logging.xml
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:433)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:250)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalStateException: ClassLoader has not been set
      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.getClassLoader(AbstractDeploymentUnit.java:154)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:60)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
      ... 6 more

      But since that is only a debug message that should not have such an impcat should it? If that might be problem, how can i fix that?

      Apart from that I don't have any clues yet, any suggestions are welcome.

      Thanks,
      Chris

        • 1. Re: Canot connect to JBoss Web Server
          jaikiran pai Master

           

          "CJ715" wrote:


          In the boot.log of the default server I found this exception:

          03:55:18,328 DEBUG [ProfileServiceBootstrap] Failed to build ManagedDeployment for: AbstractKernelDeployment@738dcb{name=file:/D:/Tools/jboss-5.1.0.GA/server/default/conf/bootstrap/logging.xml installed=true beanFactories=[AbstractBeanMetaData@6212dd{name=LogBridgeHandler bean=org.jboss.logbridge.LogBridgeHandler properties= constructor=null autowireCandidate=true}]}
          org.jboss.deployers.spi.DeploymentException: Error deploying: file:/D:/Tools/jboss-5.1.0.GA/server/default/conf/bootstrap/logging.xml
          ...
          But since that is only a debug message that should not have such an impcat should it? If that might be problem, how can i fix that?

          Apart from that I don't have any clues yet, any suggestions are welcome.



          You can ignore that http://www.jboss.org/community/wiki/ClassLoaderhasnotbeensetexceptioninbootlog

          Please post your console logs (not the server.log).


          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.


          • 2. Re: Canot connect to JBoss Web Server
            Christian Huber Newbie

            Thanks for you assistance, I just restarted the server. Here is the console output:

            D:\Tools\jboss-5.1.0.GA\bin>run
            Calling D:\Tools\jboss-5.1.0.GA\bin\run.conf.bat
            ===============================================================================
            
             JBoss Bootstrap Environment
            
             JBOSS_HOME: D:\Tools\jboss-5.1.0.GA
            
             JAVA: C:\Programme\Java\jdk1.5.0_20\bin\java
            
             JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warn
            ing=true -server
            
             CLASSPATH: D:\Tools\jboss-5.1.0.GA\bin\run.jar
            
            ===============================================================================
            
            21:50:35,859 INFO [ServerImpl] Starting JBoss (Microcontainer)...
            21:50:35,859 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
            21:50:35,859 INFO [ServerImpl] Bootstrap URL: null
            21:50:35,859 INFO [ServerImpl] Home Dir: D:\Tools\jboss-5.1.0.GA
            21:50:35,859 INFO [ServerImpl] Home URL: file:/D:/Tools/jboss-5.1.0.GA/
            21:50:35,875 INFO [ServerImpl] Library URL: file:/D:/Tools/jboss-5.1.0.GA/lib/
            21:50:35,875 INFO [ServerImpl] Patch URL: null
            21:50:35,875 INFO [ServerImpl] Common Base URL: file:/D:/Tools/jboss-5.1.0.GA/common/
            21:50:35,875 INFO [ServerImpl] Common Library URL: file:/D:/Tools/jboss-5.1.0.GA/common/lib/
            21:50:35,875 INFO [ServerImpl] Server Name: default
            21:50:35,875 INFO [ServerImpl] Server Base Dir: D:\Tools\jboss-5.1.0.GA\server
            21:50:35,875 INFO [ServerImpl] Server Base URL: file:/D:/Tools/jboss-5.1.0.GA/server/
            21:50:35,875 INFO [ServerImpl] Server Config URL: file:/D:/Tools/jboss-5.1.0.GA/server/default/conf/
            21:50:35,875 INFO [ServerImpl] Server Home Dir: D:\Tools\jboss-5.1.0.GA\server\default
            21:50:35,875 INFO [ServerImpl] Server Home URL: file:/D:/Tools/jboss-5.1.0.GA/server/default/
            21:50:35,875 INFO [ServerImpl] Server Data Dir: D:\Tools\jboss-5.1.0.GA\server\default\data
            21:50:35,875 INFO [ServerImpl] Server Library URL: file:/D:/Tools/jboss-5.1.0.GA/server/default/lib/
            21:50:35,875 INFO [ServerImpl] Server Log Dir: D:\Tools\jboss-5.1.0.GA\server\default\log
            21:50:35,875 INFO [ServerImpl] Server Native Dir: D:\Tools\jboss-5.1.0.GA\server\default\tmp\native
            21:50:35,875 INFO [ServerImpl] Server Temp Dir: D:\Tools\jboss-5.1.0.GA\server\default\tmp
            21:50:35,875 INFO [ServerImpl] Server Temp Deploy Dir: D:\Tools\jboss-5.1.0.GA\server\default\tmp\deploy
            21:50:36,421 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/Tools/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
            21:50:36,968 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
            21:50:36,968 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
            21:50:37,250 INFO [CopyMechanism] VFS temp dir: D:\Tools\jboss-5.1.0.GA\server\default\tmp
            21:50:37,250 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
            21:50:38,609 INFO [ServerInfo] Java version: 1.5.0_20,Sun Microsystems Inc.
            21:50:38,609 INFO [ServerInfo] Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02)
            21:50:38,609 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_20-b02,Sun Microsystems Inc.
            21:50:38,609 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
            21:50:38,609 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=
            3600000 -Dorg.jboss.resolver.warning=true -Djava.endorsed.dirs=D:\Tools\jboss-5.1.0.GA\lib\endorsed
            21:50:38,640 INFO [JMXKernel] Legacy JMX core initialized
            21:50:40,859 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1a0283e[domain=default, server=default, name=default]
            21:50:46,250 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
            21:50:47,562 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 11s:687ms
            


            • 3. Re: Canot connect to JBoss Web Server
              jaikiran pai Master

              I believe this is a clean installation and you haven't done any changes? I know you mentioned about this, but just wanted to be extra sure, because you are now the third person reporting this issue:


              21:50:40,859 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1a0283e[domain=default, ser
              ver=default, name=default]
              21:50:46,250 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
              21:50:47,562 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=
              200905221053)] Started in 11s:687ms
              


              The log doesn't show any mention about the HTTP connector at 8080 and looking at the time the server took to start, this looks like the "minimal" profile which got started - although the logs show that it was starting the "default" profile.

              The other 2 users who reported this are here:

              http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158736

              http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159600

              There wasn't any conclusion in those threads because the original posters did not get back with the details we asked for.

              So could you tell us where exactly you downloaded the AS from? The exact link? Also which unzip tool did you use? Also please provide the details i asked in that other thread http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159600#4248612. One thing common about all these 3 threads is that all of you use Windows OS.

              "CJ715" wrote:
              and set the jboss_home variable


              Can you try not setting it? The JBoss run scripts will do the necessary to set that variable. I wonder if it has got to do with setting this variable especially with the backslash path. But that's just a wild guess, i right now don't have clue what's causing this.


              • 4. Re: Canot connect to JBoss Web Server
                Christian Huber Newbie

                Okay, this is weird.

                The installation was clean, but just to make sure there are no changes that could cause side effects I deleted the complete install and downloaded the package again. The download link is http://surfnet.dl.sourceforge.net/project/jboss/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA.zip

                I did put the new installation into a new directory named differently than the one before, so there should be no existing references or constraints to the installation. As unzip tool I am using then WinXP built in zip support. That way the JBOSS_HOME variable got useless so I unset it.

                And suddenly the default profile starts up perfectly fine, a lot more modules are loaded and all messages are printed to the console. I set the JBOSS_HOME variable again and still everything works.

                I am very very certain I did not do any additional things the last times I tried to get it working. I used the same download link all the time and unzipped everything in the same way. But obviously something was different, I just can't tell what.

                I will try and see if I can reproduce the behaviour but atm I don't know if that will work.

                I am very sorry I wasted your time on this.

                • 5. Re: Canot connect to JBoss Web Server
                  jaikiran pai Master

                   

                  "CJ715" wrote:
                  As unzip tool I am using then WinXP built in zip support.


                  Do not use that. There have been instances where users have reported issues with that tool http://www.jboss.org/index.html?module=bb&op=viewtopic&t=160605

                  • 6. Re: Canot connect to JBoss Web Server
                    Christian Huber Newbie

                    I had the missing files issues as well when using the built in zip support but only when i opened the zip file and copied the contained folders to another directory. When I used the "extract" option everything worked fine.

                    • 7. Re: Canot connect to JBoss Web Server
                      jaikiran pai Master

                       

                      "jaikiran" wrote:
                      "CJ715" wrote:
                      As unzip tool I am using then WinXP built in zip support.


                      Do not use that. There have been instances where users have reported issues with that tool http://www.jboss.org/index.html?module=bb&op=viewtopic&t=160605


                      After reading that thread again and also a few articles about Windows XP's inbuilt zip support, i guess that Windows XP's unzip tool is infact the root cause of all these issues. This article explains why that tool causes confusions http://www.logicaltips.com/LPMArticle.asp?ID=594 and can lead to bad data.

                      • 8. Re: Canot connect to JBoss Web Server
                        Christian Huber Newbie

                        I used the builtin zip support to unzip the installation I am now using and that is working fine, so I am not sure that tool is really the issue. But maybe there is some kind of fuzzy bug in it.

                        • 9. Re: Canot connect to JBoss Web Server
                          Jorge Dieguez Newbie

                          Hi team,

                           

                          As precedent poster I'm also evaluating JBoss for my use.

                           

                          I'm working some examples from the Web Tools Platform under Eclipse.

                           

                          Environment:

                          Windows XP

                          Eclipse Helios but also Galileo tried!

                          JBoss 5.1.0

                          http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download

                          winrar 3.61

                           

                          I'm facing today exactly same problem posted here.! I don't even need to post the log (it's almost the same as posted before)

                           

                          I have notice that after Chris re-intalation of JBoss no defenitive solution or follow up is shown. I have tried all the suggestions made including re-installation and still I have the same problem. I have also tried both distributions suggested i.e. jboss-5.1.0.GA-jdk6.zip and jboss-5.1.0.GA.zip with no luck. I have also tried both Eclipse Helios and Galileo...

                           

                          Can you please help me out with this?

                           

                          Jorge

                          • 10. Re: Canot connect to JBoss Web Server
                            jaikiran pai Master

                            How are you starting the server? From the IDE or from the command prompt? Try starting it from the command prompt first. Also, please do post the relevant logs (even if they look similar to the original poster's logs).

                            • 11. Re: Canot connect to JBoss Web Server
                              Jorge Dieguez Newbie

                              Hi Jaikiran,

                               

                              Here I'm attaching both login files as you require i.e. boot.log and server.log in \jboss-5.1.0.GA\server\default\log directory. Started from the command console as opposed from the IDE (which I used to do in the first place)

                               

                              Many thanks for your support and help.

                               

                              Jorge

                              • 12. Re: Canot connect to JBoss Web Server
                                jaikiran pai Master

                                Looks like you have resolved the issue. I don't see any errors in those log files and the server has started successfully.