5 Replies Latest reply on Jun 19, 2013 11:06 AM by m_gaert

    Jboss 7.1.1.Final - standalone.sh doesn't work

    pugsherpa

      I downloaded the 7.1.1. distribution, unzipped it, and tried to run the standalone server by following the instructions detailed here:

      https://docs.jboss.org/author/display/AS71/Getting+Started+Guide

       

      However, when I try to run standalone.sh I get the following error:

       

      {code}Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found{code}

       

      I have browsed the forums and have seen two discussions that seem related to this that proposed a fix that doesn't work for me.

      https://community.jboss.org/message/622445

      https://issues.jboss.org/browse/AS7-1630

       

      Line 138 of standalone.sh doesn't correspond to where I would think the suggested line should be inserted

       

      {code}-Xbootclasspath/a:\"$JBOSS_HOME/jboss-modules.jar\" \{code}

       

      but I don't see how this would fix the problem anyway as I see earlier in the startup line the following snippet:

       

      {code}-jar \"$JBOSS_HOME/jboss-modules.jar\" \{code}

       

      I think the suggested fix is for the 7.0.1 and 7.0.2 versions and doesn't apply to 7.1.1

       

      What else can I try to get the server started?

       

       

      {code}

      %> java -version

      java version "1.6.0_26"

      Java(TM) SE RuntimeEnvironment (build 1.6.0_26-b03)

      Java HostSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

      {code}

        • 1. Re: Jboss 7.1.1.Final - standalone.sh doesn't work
          ctomc

          this is strange..

           

          looks like that there are some thing from bea jvm poping around..

           

          where does your JAVA_HOME point?

          do you have JAVA_OPTS set?

           

          aka what does

           

          echo $JAVA_HOME

          echo $JAVA_OPTS

          print out?

           

          --

          tomaz

          • 2. Re: Jboss 7.1.1.Final - standalone.sh doesn't work
            pugsherpa

            {code}

            From the Jboss Bootstrap Environment printout:

             

            JAVA: /usr/java/latest/bin/java

            JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

             

             

            %> /usr/java/latest/bin/java -version

            java version "1.6.0_26"

            Java(TM) SE RuntimeEnvironment (build 1.6.0_26-b03)

            Java HostSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

            %> echo $JBOSS_HOME

            /apps/jboss

            %> ls /apps

            apache-maven-2.2.1

            ....

            jboss -> /apps/jboss-as-7.1.1.Final

            jboss-as-7.1.1.Final

            {code}

            • 3. Re: Jboss 7.1.1.Final - standalone.sh doesn't work
              pugsherpa

              So I tried installing it on another development VM and it started up cleanly.  The only difference between the two VMs was the version of the JDK they were using.  So I upgraded the VM that was having trouble and it's working now. 

               

              The server will NOT start when using this version of the JDK 1.6:

               

              {code}

              %> /usr/java/latest/bin/java -version

              java version "1.6.0_26"

              Java(TM) SE RuntimeEnvironment (build 1.6.0_26-b03)

              Java HostSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)


              {code}

               

               

              The server WILL start when using this version of the JDK 1.6:

               

              {code}

              %> /usr/java/latest/bin/java -version

              java version "1.6.0_27"

              Java(TM) SE RuntimeEnvironment (build 1.6.0_27-b07)

              Java HostSpot(TM) 64-Bit Server VM (build 20.1-b06, mixed mode)


              {code}

               

               

              Is anyone else seeing this?

              • 4. Re: Jboss 7.1.1.Final - standalone.sh doesn't work
                ctomc

                This is really strange!

                 

                maybe there is some "extra jar" in non working jvm that overrides xml parser... that might be only explaination i can think of.

                 

                --

                tomaz

                • 5. Re: Jboss 7.1.1.Final - standalone.sh doesn't work
                  m_gaert

                  Hi, I stumbled across the same message here.

                   

                  In my case, the culprit JAR was an "endorsed" StAX, in

                     ...\jrockit-jdk1.6.0_29\jre\lib\endorsed\stax-api-1.0.1.jar

                  JBoss starts OK once I removed this file.

                   

                  Note: this JAR is a local addition. It does not come with standard Oracle JRockit 1.6.0_29.

                   

                  M.