4 Replies Latest reply on Apr 15, 2004 9:42 PM by jaggajat

    Newbie Installation Problem

    tim.richardson

      I am having problems with JBoss 3.2.3 using my SDK.

      I am using the 1.4.2_03 SDK on Windows. When the SDK is installed, two runtime enviornments are installed, one for the SDK and a "public" JRE-only. If my JAVA_HOME is not set the default runtime environment is this public JRE-only and JBoss starts fine. If I set JAVA_HOME to point at the runtime environment in the SDK directory, JBoss fails to start with the message below. Can anyone offer any suggestions as to what I might have misconfigured?

      Thanks in advance,

      Tim

      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: C:\Temp\jboss-3.2.3\bin\\..
      .
      JAVA: C:\j2sdk1.4.2_03\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat
      .
      CLASSPATH: ;C:\j2sdk1.4.2_03\lib\tools.jar;C:\Temp\jboss-3.2.3\bin\run.jar
      .
      ===============================================================================
      .
      java.lang.NoClassDefFoundError: com/sun/jmx/mbeanserver/GetPropertyAction
      at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:34)

      at org.jboss.system.server.ServerImpl.(ServerImpl.java:65)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at java.lang.Class.newInstance0(Class.java:308)
      at java.lang.Class.newInstance(Class.java:261)
      at org.jboss.system.server.ServerLoader.createServer(ServerLoader.java:2
      54)
      at org.jboss.system.server.ServerLoader.load(ServerLoader.java:233)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:534)
      Press any key to continue . . .

        • 1. Re: Newbie Installation Problem
          thuesler

          Don't let JAVA_HOME point to the JRE dir but to the JDK root dir... (Where bin asf are subdirectories of)...

          • 2. Re: Newbie Installation Problem
            tim.richardson

            Thanks for you quick reply.

            My JAVA_HOME is set to C:\j2sdk1.4.2_03 which, I believe, is the JDK root directory.

            Tim

            • 3. Re: Newbie Installation Problem
              tim.richardson

              I found the problem.

              I had a copy of Sun's j2ee.jar in the EXT folder of the SDK's runtime. I removed it and the world is a much better place.

              Thanks again.

              Tim

              • 4. Re: Newbie Installation Problem
                jaggajat

                Hi
                I am having the same problem
                Linux Redhat 9
                Apache Tomcat 5.0.18
                Mysql
                j2sdk-1_5
                Here are the details:
                ./run.sh
                ================================================================================

                JBoss Bootstrap Environment

                JBOSS_HOME: /usr/local/jboss-3.2.3

                JAVA: /usr/java/j2sdk1.5.0//bin/java

                JAVA_OPTS: -server -Dprogram.name=run.sh

                CLASSPATH: /usr/local/jboss-3.2.3/bin/run.jar:/usr/java/j2sdk1.5.0//lib/tools.jar

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

                19:32:13,958 INFO [Server] Starting JBoss (MX MicroKernel)...
                19:32:13,962 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
                19:32:13,963 INFO [Server] Home Dir: /usr/local/jboss-3.2.3
                19:32:13,964 INFO [Server] Home URL: file:/usr/local/jboss-3.2.3/
                19:32:13,964 INFO [Server] Library URL: file:/usr/local/jboss-3.2.3/lib/
                19:32:13,967 INFO [Server] Patch URL: null
                19:32:13,968 INFO [Server] Server Name: default
                19:32:13,968 INFO [Server] Server Home Dir: /usr/local/jboss-3.2.3/server/default
                19:32:13,969 INFO [Server] Server Home URL: file:/usr/local/jboss-3.2.3/server/default/
                19:32:13,970 INFO [Server] Server Data Dir: /usr/local/jboss-3.2.3/server/default/data
                19:32:13,970 INFO [Server] Server Temp Dir: /usr/local/jboss-3.2.3/server/default/tmp
                19:32:13,971 INFO [Server] Server Config URL: file:/usr/local/jboss-3.2.3/server/default/conf/
                19:32:13,971 INFO [Server] Server Library URL: file:/usr/local/jboss-3.2.3/server/default/lib/
                19:32:13,972 INFO [Server] Root Deployment Filename: jboss-service.xml
                19:32:13,980 INFO [Server] Starting General Purpose Architecture (GPA)...
                Failed to boot JBoss:
                javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default
                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
                at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:499)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:335)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
                at org.jboss.Main.boot(Main.java:150)
                at org.jboss.Main$1.run(Main.java:395)
                at java.lang.Thread.run(Thread.java:566)
                And I didnt have any file named j2ee.jar.
                Any help would be great.

                Aman