6 Replies Latest reply on Jan 2, 2007 4:01 PM by peterj

    Trying to install/test-run JBoss 5, encountering errors

    crobison

      Hey folks,

      I've downloaded a copy of JBoss 5 Beta 1, and I've installed it on a box running CentOS and I'm trying to do a test run to verify that everything got installed correctly. When I do, I get a huge dump over the next two minutes, and it doesn't look like all is well.

      The salient bits appear to be:

      13:39:34,991 ERROR [BaseModelMBean] Exception invoking method addChild
      java.lang.RuntimeException: org.jboss.xb.binding.JBossXBException: Failed to parse source: Bad file descriptor
      at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:264)

      ...

      13:39:35,051 ERROR [BaseModelMBean] Exception invoking method init
      LifecycleException: Manager has not yet been started

      ...

      13:39:35,097 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/jmx-console state=Create mode=Manual requiredState=Installed
      LifecycleException: Manager has not yet been started

      ...
      This is directly after having unzipped the distribution zip file jboss-5.0.0.Beta1.zip. What else do I need to do at an absolute minimum to get it to start up successfully?

      Thanks!
      --chris

        • 1. Re: Trying to install/test-run JBoss 5, encountering errors
          zauberlehrling

          Hello,

          I wish you a happy new year!
          Concerning JBoss 5 Beta 1 I have similar problems mentioned above on a linux box.I start the application server jboss-5.0.0.Beta1 with jdk1.6.0_01. The first time I start the application server I get only the message:

          JBoss Messaging Warning: DataSource connection transaction isolation should be READ_COMMITTED, but it is currently NONE.
          Using an isolation level less strict than READ_COMMITTED may lead to data consistency problems.
          Using an isolation level more strict than READ_COMMITTED may lead to deadlock.

          Should I therefore adapt the isolation level in the file hsqldb-ds.xml? The scond time I get in addition the following Exceptions:

          11:24:53,768 ERROR [BaseModelMBean] Exception invoking method addChild
          java.lang.RuntimeException: org.jboss.xb.binding.JBossXBException: Failed to parse source: Bad file descriptor
           at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:264)
           at org.jboss.web.tomcat.tc6.WebAppLoader.start(WebAppLoader.java:104)
           ..
          11:24:53,787 ERROR [BaseModelMBean] Exception invoking method init
          LifecycleException: Manager has not yet been started
           at org.apache.catalina.session.StandardManager.stop(StandardManager.java:660)
           ..

          By the way, do you have a description how to check out the latest version of jboss application server 5 from subversion and how to build it?

          Thanks and best regards,

          Frank


          • 2. Re: Trying to install/test-run JBoss 5, encountering errors
            peterj

            At first I thought you might be having a problem because you are using JDK 1.6. But I just now downloaded it and ran JBoss 5.0 beta 1 just fine. Actually, I am not running beta 1. I got the source from Subversion and compiled it myself using JDK 1.5.

            To get the latest source:

            svn co http://anonsvn.jboss.org/repos/jbossas/trunk jboss-head

            Once you have it, to build, go into the build directory and run build.sh. You might want to use a 1.5 JDK to build it (I haven't tried 1.6)..

            • 3. Re: Trying to install/test-run JBoss 5, encountering errors
              zauberlehrling

              Hey Peter,

              thank you very much for your comments! This morning I also tried to build the application server. Therefore I have newly installed jdk1.5.0_08 and have downloaded the sources from subversion. Unfortunately my build was not succesful:

              ....
              compile-classes:
               [mkdir] Created dir: /home/frank/JEE5_TCK/aop/output/classes
               [javac] Compiling 418 source files to /home/frank/JEE5_TCK/aop/output/classes
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/Advisor.java:359: hasAnnotation(java.lang.Class) in org.jboss.repository.spi.MetaDataContext cannot be applied to (java.lang.String)
               if (metadataContext.hasAnnotation(annotation)) return true;
               ^
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/Advisor.java:377: getAnnotation(java.lang.Class) in org.jboss.repository.spi.MetaDataContext cannot be applied to (java.lang.reflect.Method,java.lang.Class)
               Object val = metadataContext.getAnnotation(m, annotation);
               ^
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/Advisor.java:422: hasAnnotation(java.lang.Class) in org.jboss.repository.spi.MetaDataContext cannot be applied to (java.lang.reflect.Method,java.lang.String)
               if (metadataContext.hasAnnotation(m, annotation)) return true;
               ^
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/ClassAdvisor.java:630: warning: [deprecation] constructorInterceptors in org.jboss.aop.Advisor has been deprecated
               constructorInterceptors, methodInterceptors);
               ^
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/ClassAdvisor.java:1986: warning: [deprecation] constructorInterceptors in org.jboss.aop.Advisor has been deprecated
               constructorInterceptors, methodInterceptors);
               ^
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/ClassContainer.java:261: warning: [deprecation] populateInterceptorsFromInfos() in org.jboss.aop.Advisor has been deprecated
               populateInterceptorsFromInfos();
               ^
              /home/frank/JEE5_TCK/aop/src/main/org/jboss/aop/pointcut/Util.java:499: warning: [deprecation] getAllMethods() in org.jboss.aop.Advisor has been deprecated
               Method[] methods = advisor.getAllMethods();
               ^
              3 errors
              4 warnings
              
              BUILD FAILED
              /home/frank/JEE5_TCK/aop/build.xml:259: Compile failed; see the compiler error output for details.
              

              Of course I cannot start the application server.
              > ./run.sh
              run.sh: Missing file: /lib/tools.jar
              run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
              =========================================================================
              
               JBoss Bootstrap Environment
              
               JBOSS_HOME: /home/frank/JEE5_TCK/build/output/jboss-5.0.0.Beta
              
               JAVA: java
              
               JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -D.gcInterval=3600000
              
               CLASSPATH: /home/frank/JEE5_TCK/build/output/jboss-5.0.0.Beta/bin/run.jar:/lib/tools.jar
              
              =========================================================================
              
              Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/NestedException
              


              Best regards,

              Frank

              • 4. Re: Trying to install/test-run JBoss 5, encountering errors
                peterj

                Where did you get the aop directory from? When I ran svn to get the JBoss trunk, there was no aop directory. Looks like you might have gotten a 4.0.x source instead.

                Also, did you set JAVA_HOME to the 1.5 JDK? In my .bashrc I have:

                export JAVA_HOME=/usr/java/jdk1.5.0_10

                • 5. Re: Trying to install/test-run JBoss 5, encountering errors
                  zauberlehrling

                  Hi Peter,

                  you are right. It were the wrong sources. I downloaded one more time
                  and now the build is successful and I can start the application server.

                  Thank you very much! If you come to Germany I will spent a beer.

                  Just for info: I newly installed jdk1.5.0_08 and JBoss 5.0.0.Beta1
                  (binary package) on Windows. In this environment I also get Exceptions.

                  Best regards,

                  Frank

                  • 6. Re: Trying to install/test-run JBoss 5, encountering errors
                    peterj

                    Your are getting the same exceptions on Windows? It works fine for me (I initially ran the binary download with the 1.5 JVM, but currently am running a recent trunk download that I compiled with JDK 1.5).

                    Hey, I would gladly travel to Deutschland for a free Bier! Prost!