7 Replies Latest reply on Aug 17, 2012 2:14 AM by Anton Yanchev

    JBoss AS6 final can't start on SLES4

    Thomas Nagel Newbie

      Hi Collegues,

       

      when trying to start the AS6 on a SLES (Suse Linux Enterprise) I get the following error when starting the "standard" server

      (unmodified from the distribution):

       

      --- cut ---

      INFO: deploy, ctxPath=/

      02.02.2011 10:31:02 org.jboss.dependency.plugins.AbstractController incrementState

      ERROR: Error installing to Instantiated: name=JBossLogService state=Described mode=On Demand requiredState=Installed

      java.lang.ExceptionInInitializerError

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:154)

              at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:102)

              at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:81)

              at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:109)

              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)

              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)

              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)

              at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:67)

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182)

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

              at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

              at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)

              at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

              at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)

              at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)

              at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)

              at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)

              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112)

              at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87)

              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91)

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132)

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)

              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)

              at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")

              at org.jboss.logmanager.Logger.getLogger(Logger.java:60)

              at org.jboss.logmanager.LogService.<clinit>(LogService.java:32)

              ... 75 more

      02.02.2011 10:31:03 org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap start

      ERROR: Failed to load profile:

      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS MISSING DEPENDENCIES:

        Deployment "Logging:CONTEXT:system" is missing the following dependencies:

          Dependency "JBossLogService" (should be in state "Create", but is actually in state "**ERROR**")

        Deployment "Logging:HANDLER:system:CONSOLE" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:HANDLER_INSTALLER:system::2" is missing the following dependencies:

          Dependency "Logging:LOGGER:system:<root>" (should be in state "Installed", but is actually in state "Described")

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

          Dependency "Logging:HANDLER:system:CONSOLE" (should be in state "Installed", but is actually in state "Instantiated")

        Deployment "Logging:LOGGER:system:<root>" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:com.arjuna.ats" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:com.sun" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:facelets.compiler" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:jacorb" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:javax.enterprise.resource.webcontainer.jsf" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:javax.xml.bind" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.apache" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.jboss.management" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.jboss.serial" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.jgroups" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.mc4j" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.quartz" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.rhq.plugins.jbossas5.ApplicationServerComponent" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:org.springframework" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

        Deployment "Logging:LOGGER:system:sun" is missing the following dependencies:

          Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")

       

      DEPLOYMENTS IN ERROR:

        Deployment "JBossLog4jRepostiorySelector" is in error due to the following reason(s): java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")

        Deployment "JBossLogService" is in error due to the following reason(s): java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager"), **ERROR**

       

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905)

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87)

              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107)

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135)

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)

              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)

              at java.lang.Thread.run(Thread.java:662)

      02.02.2011 10:31:03 org.apache.coyote.http11.Http11Protocol start

      INFO: Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

      02.02.2011 10:31:03 org.apache.coyote.ajp.AjpProtocol start

      INFO: Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

      02.02.2011 10:31:03 org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask run

      INFO: JBossAS [6.0.0.Final "Neo"] Started in 28s:162ms

      --- cut ---

       

      the system's uname shows:

      basis-fantasio:/opt/jboss/bin # uname -a

      Linux basis-fantasio 2.6.16.46-0.12-default #1 Thu May 17 14:00:09 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux

       

      and it is using the latest JDK 1.6.0.23

       

      Any ideas what I could have done wrong, or what is missing?

       

       

      Thanks,

      Thomas

        • 1. JBoss AS6 final can't start on SLES4
          Nicklas Karlsson Master

          What does the log say in the "header block" where it lists JBOSS_HOME, JAVA_OPTS etc?

          • 2. JBoss AS6 final can't start on SLES4
            Thomas Nagel Newbie

            Hello,

            the following is shown:

             

            ---

            basis-fantasio:/opt/jboss/bin # ./run.sh -c standard

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

             

              JBoss Bootstrap Environment

             

              JBOSS_HOME: /opt/jboss

             

              JAVA: /usr/lib/jvm/java/bin/java

             

              JAVA_OPTS:  -Duser.region=DE -Duser.language=de -Xmx1024m -Xms128m -XX:MaxPermSize=128m -Xss256k -XX:+UseConcMarkSweepGC -XX:+UseParNewGC  -Djava.awt.headless=true  -Dcom.sun.management.jmxremote -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -server -Djava.net.preferIPv4Stack=true -Dprogram.name=run.sh -Djava.library.path=/opt/jboss/bin/native/lib64:/opt/oracle/product/10.2/db_1/lib

             

              CLASSPATH: /opt/oracle/product/10.2/db_1/jdbc/lib/ojdbc14.jar:/opt/jboss/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar

             

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

             

            02.02.2011 10:51:09 org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase logServerInfo

            INFO: Server Configuration:

             

                    JBOSS_HOME URL: file:/opt/jboss-6.0.0.Final/

                    Bootstrap: $JBOSS_HOME/server/standard/conf/bootstrap.xml

                    Common Base: $JBOSS_HOME/common/

                    Common Library: $JBOSS_HOME/common/lib/

                    Server Name: standard

                    Server Base: $JBOSS_HOME/server/

                    Server Library: $JBOSS_HOME/server/standard/lib/

                    Server Config: $JBOSS_HOME/server/standard/conf/

                    Server Home: $JBOSS_HOME/server/standard/

                    Server Data: $JBOSS_HOME/server/standard/data/

                    Server Log: $JBOSS_HOME/server/standard/log/

                    Server Temp: $JBOSS_HOME/server/standard/tmp/

             

            02.02.2011 10:51:09 org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask run

            INFO: Starting: JBossAS [6.0.0.Final "Neo"]

            ---

             

             

            and thanks for your reply

            Thomas

            • 3. JBoss AS6 final can't start on SLES4
              Nicklas Karlsson Master

              /opt/jboss is a symlink to /opt/jboss-6.0.0.Final?

               

              Tried running it without JBOSS_HOME in the env?

              • 4. JBoss AS6 final can't start on SLES4
                Thomas Nagel Newbie

                Hello Nicklas,

                 

                yes, we had jboss-4.2.1 before, but I changed the symlink before starting.

                 

                I tried running it with 'unset JBOSS_HOME' before calling run.sh also, but it didnt change the error.

                 

                 

                Could it be something more general, like not finding a fundamental library?

                 

                In a first naive try with our EAR the tomcat also had deployment errors, couldnt find the servlet api classes...

                (it couldn't even start the jmx-console...)

                 

                I then thought it would be better to step back and try an unmodified server first,

                start it by calling run.sh directly from a shell (not from rc.d, as we usually do),

                but both 'standard' and also 'default' give the same problems.

                 

                Any ideas what's wrong?

                 

                cu

                Thomas

                • 5. JBoss AS6 final can't start on SLES4
                  Nicklas Karlsson Master

                  If a clean AS fails to start with run.bat/run.sh without any reasonable exception in the log it's usually something with the startup envrionment variables etc...

                  1 of 1 people found this helpful
                  • 6. JBoss AS6 final can't start on SLES4
                    Thomas Nagel Newbie

                    Ah, yes, and thanks...

                     

                    I repeated 'unset'ting env-vars like JBOSS_LOGPATH, JBOSS_CLASSPATH and finally JAVA_OPTS...

                    and then it did it.

                     

                    there used to be some Oracle-DB classes in the paths, maybe there is a conflict in those JARs with the AS JARs.

                     

                    Thanks for your help

                     

                    Regards from Germany

                    Thomas

                    • 7. Re: JBoss AS6 final can't start on SLES4
                      Anton Yanchev Newbie

                      Hi Thomas,

                      Sorry for my stupid question with your post as you said unsetting env-vars ike JBOSS_LOGPATH, JBOSS_CLASSPATH and finally JAVA_OPTS...

                      you mean to do this?

                      rem echo ===============================================================================

                      rem echo.

                      rem echo   JBoss Bootstrap Environment

                      rem echo.

                      rem echo   JBOSS_HOME: %JBOSS_HOME%

                      rem echo.

                      rem echo   JAVA: %JAVA%

                      rem echo.

                      rem echo   JAVA_OPTS: %JAVA_OPTS%

                      rem echo.

                      rem  echo   CLASSPATH: %JBOSS_CLASSPATH%

                      rem echo.