4 Replies Latest reply on Sep 5, 2008 10:35 AM by stefan lotties

    jboss 4.2.1 throws NoClassDefFoundError's on boot on 64bit s

    stefan lotties Newbie

      Hi,

      we're currently installing a JBoss on a sun solaris 10 (sun fire t2000) with a sun jvm for sparc (1.5.0_16). When we use the 32bit version everything works fine (even though the jboss boots *very* slow) but when we use the "-d64" parameter we run into NoClassDefFoundError's on startup:

      16:50:34,949 INFO [Server] Starting JBoss (MX MicroKernel)...
      16:50:34,953 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
      16:50:34,958 INFO [Server] Home Dir: /cms/jboss-4.2.1.GA_slimmed
      16:50:34,958 INFO [Server] Home URL: file:/cms/jboss-4.2.1.GA_slimmed/
      16:50:34,961 INFO [Server] Patch URL: null
      16:50:34,962 INFO [Server] Server Name: pb-cms2
      16:50:34,963 INFO [Server] Server Home Dir: /cms/jboss-4.2.1.GA_slimmed/server/pb-cms2
      16:50:34,964 INFO [Server] Server Home URL: file:/cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/
      16:50:34,964 INFO [Server] Server Log Dir: /cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/log
      16:50:34,965 INFO [Server] Server Temp Dir: /cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/tmp
      16:50:34,967 INFO [Server] Root Deployment Filename: jboss-service.xml
      16:50:36,163 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
      16:50:36,163 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_16-b02,Sun Microsystems Inc.
      16:50:36,164 INFO [ServerInfo] OS-System: SunOS 5.10,sparcv9
      16:50:37,656 INFO [Server] Core system initialized
      16:50:46,858 WARN [DeploymentOrderComparator] Could not read reload-period from mbean.
      16:50:46,861 WARN [DeploymentOrderComparator] Could not read configuration-location from mbean.
      16:50:46,862 INFO [DeploymentOrderComparator] Initializing with: reloadPeriod=120000, location=JBOSS_SERVER_HOME/conf/deployment-order.conf, strictToModules=false
      16:50:47,265 INFO [WebService] Using RMI server codebase: http://10.11.17.100:18083/
      16:50:47,853 WARN [ServiceController] Problem creating service jboss.remoting:service=Connector,transport=socket
      java.lang.NoClassDefFoundError: org/jboss/remoting/marshal/SerialMarshaller
       at java.lang.ClassLoader.defineClass1(Native Method)
      [...]
      


      Does anyone know what may the problem or how we can do more analysis on this?

      Regards,
      Stefan

        • 1. Re: jboss 4.2.1 throws NoClassDefFoundError's on boot on 64b
          jaikiran pai Master

           

          16:50:36,163 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_16-b02,Sun Microsys
          tems Inc.


          When you are using a 64-bit JDK explicitly, you dont have to pass the -d64 JVM option. Does it work when you remove the -d64 option?

          file:/cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/

          Also, are you sure you created the pb-cms2 correctly with all the required components and jars?

          • 2. Re: jboss 4.2.1 throws NoClassDefFoundError's on boot on 64b
            stefan lotties Newbie

            Without -d64 the 32bit vm will be used:

            [...]
            15:14:08,853 INFO [Server] Patch URL: null
            15:14:08,854 INFO [Server] Server Name: pb-cms2
            15:14:08,854 INFO [Server] Server Home Dir: /cms/jboss-4.2.1.GA_slimmed/server/pb-cms2
            15:14:08,855 INFO [Server] Server Home URL: file:/cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/
            15:14:08,856 INFO [Server] Server Log Dir: /cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/log
            15:14:08,857 INFO [Server] Server Temp Dir: /cms/jboss-4.2.1.GA_slimmed/server/pb-cms2/tmp
            15:14:08,866 INFO [Server] Root Deployment Filename: jboss-service.xml
            15:14:09,948 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
            15:14:09,949 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02,Sun Microsystems Inc.
            15:14:09,949 INFO [ServerInfo] OS-System: SunOS 5.10,sparc
            15:14:11,514 INFO [Server] Core system initialized
            15:14:20,376 WARN [DeploymentOrderComparator] Could not read reload-period from mbean.
            15:14:20,378 WARN [DeploymentOrderComparator] Could not read configuration-location from mbean.
            15:14:20,378 INFO [DeploymentOrderComparator] Initializing with: reloadPeriod=120000, location=JBOSS_SERVER_HOME/conf/deployment-order.conf, strictToModules=false
            15:14:20,726 INFO [WebService] Using RMI server codebase: http://10.11.17.100:18083/
            15:14:22,870 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
            15:14:22,871 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
            [...]
            


            and then the jboss boots without any error.

            > Also, are you sure you created the pb-cms2 correctly with all the
            > required components and jars?

            Yes, as this configuration runs on other systems (x86 system, this one is the first sparc we have) in 32 bit and 64 bit.

            • 3. Re: jboss 4.2.1 throws NoClassDefFoundError's on boot on 64b
              jaikiran pai Master

              Going by the earlier log message about the Sun JDK being used, i thought you were explicitly pointing to a 64 bit JDK. Could you try downloading the 64 bit version of JDK and point JBoss to use it? See if that works.

              • 4. Re: jboss 4.2.1 throws NoClassDefFoundError's on boot on 64b
                stefan lotties Newbie

                > Going by the earlier log message about the Sun JDK being used, i thought
                > you were explicitly pointing to a 64 bit JDK.

                Nono, I set "-d64" to use the 64 bit jdk instead of the 32 bit as the sparc 64 bit jdk is just an "overlay"/"patch" to the 32 bit jdk.

                > Could you try downloading the 64 bit version of JDK and point JBoss to
                > use it? See if that works.

                With setting "JAVA=$JAVA_HOME/bin/sparcv9/java" (removed -d64) in the run.conf the jboss boots without problems with the 64 bit jdk, thanks!