6 Replies Latest reply on Jan 17, 2009 5:35 AM by mittal_abhi86

    Can't start up JBoss

      Downloaded 4.2.3.GA. Set up jboss_home and included the bin in the path variable. After run.bat, the start up process stopped in the middle. Last message in the boot.log is

      17:00:22,165 DEBUG [Server] Starting General Purpose Architecture (GPA)...
      17:00:22,275 WARN [BasicMBeanRegistry] preRegister() failed for JMImplementation:type=MBeanServerDelegate:
      java.lang.NoSuchFieldError: TRACE
       at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85) ........
      

      and further down
      17:00:22,275 DEBUG [Server] Failed to start
      java.lang.RuntimeException: Cannot create MBeanServer
       at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:239) .......
      


      The installation was a clean one. So I think the problem is something outside the package. Can anybody help me on this.


        • 1. Re: Can't start up JBoss
          jaikiran

          Please post the entire console logs. That might give us an idea about what's wrong. Have you deployed any of your applications yet on this installation?

          • 2. Re: Can't start up JBoss
            jaikiran

            And did you replace/add any jar files in the server, especially any jars related to log4j?

            • 3. Re: Can't start up JBoss
              peterj

              The first problem looks like you are licking up an old version of log4j.

              Make sure that your CLASSPATH environment variable is not set. (Yes, I mean *NOT* set.) The run script will set the necessary classpath.

              Also, make sure that you do not have any "endorsed" directories in your JVM.

              If this doesn't help, add "-verbose:class" to the JVM command line within run.bat. This option causes the JVM to print out the JAR file for every class loaded - that should help you locate the stray log4j jar file.

              • 4. Re: Can't start up JBoss

                Dear all,
                I deployed session bean in jboss 4.2.3GA . It deployed successfully. But It is giving the exception while running the client.. It is not showing any stack trace on Jboss Console. But showing on client console.

                java.lang.NoSuchFieldError: TRACE
                at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85)
                NamingContext.lookup(NamingContext.java:600))

                Please help me in this regard.

                • 5. Re: Can't start up JBoss
                  jaikiran

                   

                  "anupamkakade" wrote:
                  But showing on client console.



                  Which means that your client side classpath is having an incorrect version of log4j jar file? What is your classpath pointing to and how do you set the classpath? Are you using an IDE?

                  • 6. Re: Can't start up JBoss
                    mittal_abhi86

                    Buddy you should perhaps try out giving the following property in your systemVariables:
                    PATH = "c:\windows\system32"
                    or alternatively wherever your windows folder exists, give path to system32 directory.