8 Replies Latest reply on Dec 30, 2011 4:35 PM by samy omar

    [Beta-Build] Server doesnt start

    lostiniceland Newbie

      Hi

       

      I downloaded the new Beta from github and built the server with Maven (while skipping the tests). The build was successfull but currently I am not able to start it.

      {code}

      WARNING: No log manager service descriptor found in specified logmodule org.jboss.logmanager:main

      Exception in thread "main" java.lang.ExceptionInInitializerError

      at org.jboss.as.server.Main.main(Main.java:90)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.modules.Module.run(Module.java:243)

      at org.jboss.modules.Main.main(Main.java:313)

      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.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)

      ... 7 more

      {code}

       

      When I set the option -Djava.util.logging.manager=org.jboss.logmanager.LogManager (which I found in an issue tracker) than I get a ClassNotFoundException.

       

      I am trying to start the standalone server, and I get the error in Eclipse and using the Script. Is anyone having the same issues or able to help me out here? Thanks

        • 1. Re: [Beta-Build] Server doesnt start
          jaikiran pai Master

          lostiniceland wrote:

           

          Hi

           

          I downloaded the new Beta from github and built the server with Maven (while skipping the tests).

          Beta? Or CR1 snapshot? What repo and URL did you get it from?

           

           

          lostiniceland wrote:

           

           

          I am trying to start the standalone server, and I get the error in Eclipse and using the Script. Is anyone having the same issues or able to help me out here? Thanks

          What command do you use to start the server? Can you post the entire console log?

          • 2. Re: [Beta-Build] Server doesnt start
            lostiniceland Newbie

            Sorry for the late response,

             

            I downloaded this zipfile https://github.com/jbossas/jboss-as/zipball/7.1.0.Beta1 which is found under tags in the github-repo.

             

            When running the script, I am getting a strange errormessage.

             

            {code}

            C:\JBoss AS\jboss-as-7.1.0.Beta1\bin>standalone.bat

            Calling "C:\JBoss AS\jboss-as-7.1.0.Beta1\bin\standalone.conf.bat"

            Could not locate "J:\JBoss\jboss-5.1.0.GA\jboss-modules.jar".

            Please check that you are in the bin directory when running this script.

            Press any key to continue . . .{code}

            I have no idea where this drive J is coming from and neither do I have any JBoss 5 installation on this machine (never had before).

             

             

            The consolelog from eclipse, using the Jboss Server Adapter, is the one in my original post.

            • 3. Re: [Beta-Build] Server doesnt start
              jaikiran pai Master

              Post the output of

               

              echo %JBOSS_HOME%

               

              Maybe someone has set that value as an environment variable (which is never recommended).

              • 4. Re: [Beta-Build] Server doesnt start
                lostiniceland Newbie

                jaikiran pai schrieb:

                 

                Post the output of

                 

                echo %JBOSS_HOME%

                 

                Maybe someone has set that value as an environment variable (which is never recommended).

                That did indeed solve the console problem. Thanks for your help.

                 

                But still I get the logmanager error. This is the complete log

                 

                {code}

                C:\JBoss AS\jboss-as-7.1.0.Beta1\bin>standalone.bat

                Calling "C:\JBoss AS\jboss-as-7.1.0.Beta1\bin\standalone.conf.bat"

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

                 

                  JBoss Bootstrap Environment

                 

                  JBOSS_HOME: C:\JBoss AS\jboss-as-7.1.0.Beta1

                 

                  JAVA: C:\Program Files\Java\jdk1.6.0_29\bin\java

                 

                  JAVA_OPTS: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -server

                 

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

                 

                WARNING: No log manager service descriptor found in specified logmodule org.jboss.logmanager:main

                Exception in thread "main" java.lang.ExceptionInInitializerError

                        at org.jboss.as.server.Main.main(Main.java:90)

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                        at java.lang.reflect.Method.invoke(Method.java:597)

                        at org.jboss.modules.Module.run(Module.java:243)

                        at org.jboss.modules.Main.main(Main.java:313)

                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.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)

                        ... 7 more

                Press any key to continue . . .

                {code}

                 

                As I mentioned before when I set -Djava.util.logging.manager=org.jboss.logmanager.LogManager I get a ClassNotFoundException.

                • 5. Re: [Beta-Build] Server doesnt start
                  lostiniceland Newbie

                  It looks like I have to put the jboss-logmanager.jar into the bootclasspath. How do I do this? I tried putting the file from jboss-as-7.1.0.Beta1\modules\org\jboss\logmanager\main into  jboss-as-7.1.0.Beta1\standalone\lib but it didnt work.

                  • 6. Re: [Beta-Build] Server doesnt start
                    wkraemer58 Newbie

                    I've got a notion to have the same problem. To solve the problem I try some variants to declare LogManager  and the path to find jboss-logmanager.jar. But I get no success. Later I get a tip from friends that there are problems with blanks in folder names.  In a new try I use an folder for jboss without blanks. And now it's run. I see you use the folder 'C:\JBoss AS\jbo...'. May be, it's the some cast.

                    • 7. Re: [Beta-Build] Server doesnt start
                      lostiniceland Newbie

                      wkraemer58 schrieb:

                       

                      I've got a notion to have the same problem. To solve the problem I try some variants to declare LogManager  and the path to find jboss-logmanager.jar. But I get no success. Later I get a tip from friends that there are problems with blanks in folder names.  In a new try I use an folder for jboss without blanks. And now it's run. I see you use the folder 'C:\JBoss AS\jbo...'. May be, it's the some cast.

                      I was about to write that the problem is solved by moving to Linux. But out of curiousity I tried renaming the folder and voila...it works. Thanks a lot (because I have to run Windows on my Business Laptop).

                      • 8. Re: [Beta-Build] Server doesnt start
                        samy omar Newbie

                        thanks this helped me too