7 Replies Latest reply on Feb 14, 2004 8:42 AM by alexandervn

    JBoss with FreeBSD and jdk 1.3

    fgreco Newbie

      I downloaded JBoss and tried to start it up on my FreeBSD server,
      following the instructions in the documentation. But as soon as I start
      it, I get the error below. There is nothing exotic or weird about how
      I'm starting it ... I just run the "run.sh" script in the "bin"
      directory as specified by the docs. I set JAVA_HOME properly in the
      "run.conf" file, and I have tried the "run.sh" with each of the
      following sets of arguments: "-c default", "-c all", and "-c minimal".

      However, I always get this error.

      I'm using Java 1.3.1, which is the highest version which runs under FreeBSD.

      Any help is greatly appreciated.

      =====================================
      JBoss Bootstrap Environment

      JBOSS_HOME: /home/services/src/jboss-3.2.2RC3
      JAVA: /usr/local/jdk1.3.1/bin/java
      JAVA_OPTS: -Dprogram.name=run.sh
      CLASSPATH:
      /home/services/src/jboss-3.2.2RC3/bin/run.jar:/usr/local/jdk1.3.1/lib/tools.jar

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

      17:58:38,257 INFO [Server] Starting JBoss (MX MicroKernel)...
      17:58:38,264 INFO [Server] Release ID: JBoss [WonderLand] 3.2.2RC3
      (build: CVSTag=JBoss_3_2_2_RC3 date=200308241317)
      17:58:38,271 INFO [Server] Home Dir: /home/services/src/jboss-3.2.2RC3
      17:58:38,274 INFO [Server] Home URL: file:/home/services/src/jboss-3.2.2RC3/
      17:58:38,276 INFO [Server] Library URL: file:/home/services/src/jboss-3.2.2RC3/lib/
      17:58:38,285 INFO [Server] Patch URL: null
      17:58:38,289 INFO [Server] Server Name: default
      17:58:38,292 INFO [Server] Server Home Dir: /home/services/src/jboss-3.2.2RC3/server/default
      17:58:38,297 INFO [Server] Server Home URL: file:/home/services/src/jboss-3.2.2RC3/server/default/
      17:58:38,301 INFO [Server] Server Data Dir: /home/services/src/jboss-3.2.2RC3/server/default/data
      17:58:38,305 INFO [Server] Server Temp Dir: /home/services/src/jboss-3.2.2RC3/server/default/tmp
      17:58:38,309 INFO [Server] Server Config URL: file:/home/services/src/jboss-3.2.2RC3/server/default/conf/
      17:58:38,312 INFO [Server] Server Library URL: file:/home/services/src/jboss-3.2.2RC3/server/default/lib/
      17:58:38,317 INFO [Server] Root Deployemnt Filename: jboss-service.xml
      17:58:38,340 INFO [Server] Starting General Purpose Architecture (GPA)...
      17:58:39,173 ERROR [Server] Failed to start
      java.lang.RuntimeException: Unable to create the MBean server
      instance. Class org.jboss.mx.server.MBeanServerImpl has raised an exception in constructor: java.lang.NoSuchFieldError:
      org.jboss.mx.modelmbean.ModelMBeanInvoker: field ALL_DESCRIPTORS not found
      at
      javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
      at
      javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:80)
      at
      org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:327)
      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:388)
      at java.lang.Thread.run(Thread.java:484)
      Failed to boot JBoss:
      java.lang.RuntimeException: Unable to create the MBean server
      instance. Class org.jboss.mx.server.MBeanServerImpl has raised an
      exception in constructor: java.lang.NoSuchFieldError:
      org.jboss.mx.modelmbean.ModelMBeanInvoker: field ALL_DESCRIPTORS not found
      at
      javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
      at
      javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:80)
      at
      org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:327)
      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:388)

        • 1. Re: JBoss with FreeBSD and jdk 1.3
          Jon Barnett Master

          Someone else was having the same problem with JDK 1.3 on Unixware. I have a feeling that there is something in the JBoss 3.2.x line that has a JDK 1.4 dependency or there is something missing from the JDK 1.3 for your distributions - the reason I suspect this being that the run-time exception indicates it is having problems accesing a fairly simple filed in a class that is packed in the same library as the rest of the JBoss MBean management implementation.

          Please try getting a source copy of JBoss to build with your JDK. However, I think that may also have problems.

          The only other suggestion would be to switch to the JBoss 3.0.x as it may retain full early JDK 1.3 compliance.

          • 2. Re: JBoss with FreeBSD and jdk 1.3
            Ed Mahoney Newbie

            I'm getting exactly the same error with linux running on a powerpc using IBM's 1.3.1 java for ppc. I'll try jonlee's suggestion.

            Thanks jon.

            Ed

            • 3. Re: JBoss with FreeBSD and jdk 1.3
              wmyuan Newbie

              Hey,

              I even tried to build JBoss from src on FreeBsd but failed on both JBoss 3.0.x and 3.2.x. Has anyone actually succeeded in setting JBoss on FreeBsd?

              here is some info about my system:

              java version "1.3.1-p8"
              Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p8-oakgrov2-030811-22:14)

              FreeBSD 4.8-RELEASE FreeBSD 4.8-RELEASE #1

              Senario 1): try to run JBoss3.2 installed from /usr/ports.

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

              JBoss Bootstrap Environment

              JBOSS_HOME: /usr/local/jboss3.2

              JAVA: /usr/local/linux-blackdown-jdk1.3.1/bin/java

              JAVA_OPTS: -Dprogram.name=run.sh

              CLASSPATH: /usr/local/jboss3.2/bin/run.jar:/usr/local/linux-blackdown-jdk1.3.1/lib/tools.jar

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

              05:57:49,372 INFO [Server] Starting JBoss (MX MicroKernel)...
              05:57:49,373 INFO [Server] Release ID: JBoss [WonderLand] 3.2.1 (build: CVSTag=JBoss_3_2_1 date=200305041533)
              05:57:49,374 INFO [Server] Home Dir: /usr/local/jboss3.2
              05:57:49,374 INFO [Server] Home URL: file:/usr/local/jboss3.2/
              05:57:49,375 INFO [Server] Library URL: file:/usr/local/jboss3.2/lib/
              05:57:49,376 INFO [Server] Patch URL: null
              05:57:49,376 INFO [Server] Server Name: default
              05:57:49,376 INFO [Server] Server Home Dir: /usr/local/jboss3.2/server/default
              05:57:49,377 INFO [Server] Server Home URL: file:/usr/local/jboss3.2/server/default/
              05:57:49,377 INFO [Server] Server Data Dir: /usr/local/jboss3.2/server/default/data
              05:57:49,378 INFO [Server] Server Temp Dir: /usr/local/jboss3.2/server/default/tmp
              05:57:49,378 INFO [Server] Server Config URL: file:/usr/local/jboss3.2/server/default/conf/
              05:57:49,378 INFO [Server] Server Library URL: file:/usr/local/jboss3.2/server/default/lib/
              05:57:49,379 INFO [Server] Root Deployemnt Filename: jboss-service.xml
              05:57:49,385 INFO [Server] Starting General Purpose Architecture (GPA)...
              05:57:49,545 INFO [ServerInfo] Java version: 1.3.1,Blackdown Java-Linux Team
              05:57:49,546 INFO [ServerInfo] Java VM: Classic VM Blackdown-1.3.1-02b-FCS,Blackdown Java-Linux Team
              05:57:49,546 INFO [ServerInfo] OS-System: Linux 2.4.2,i386
              05:57:49,583 INFO [ServiceController] Controller MBean online
              05:57:49,627 INFO [MainDeployer] Creating
              05:57:49,651 INFO [MainDeployer] Created
              05:57:49,653 INFO [MainDeployer] Starting
              05:57:49,653 INFO [MainDeployer] Started
              05:57:49,707 INFO [JARDeployer] Creating
              05:57:49,728 INFO [JARDeployer] Created
              05:57:49,729 INFO [JARDeployer] Starting
              05:57:49,730 INFO [MainDeployer] Adding deployer: org.jboss.deployment.JARDeployer@1265c85a
              05:57:49,730 INFO [JARDeployer] Started
              05:57:49,740 INFO [SARDeployer] Creating
              05:57:49,766 INFO [SARDeployer] Created
              05:57:49,767 INFO [SARDeployer] Starting
              05:57:49,767 INFO [MainDeployer] Adding deployer: org.jboss.deployment.SARDeployer@1266b02e
              05:57:49,805 INFO [SARDeployer] Started
              05:57:49,806 INFO [Server] Core system initialized
              05:57:49,827 INFO [MainDeployer] Starting deployment of package: file:/usr/local/jboss3.2/server/default/conf/jboss-service.xml
              05:57:49,835 ERROR [Server] Failed to start
              java.lang.AbstractMethodError: org/jboss/deployment/SubDeployerSupport.accepts
              at org.jboss.deployment.MainDeployer.findDeployer(MainDeployer.java:881)
              at org.jboss.deployment.MainDeployer.init(MainDeployer.java:680)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
              at $Proxy6.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
              at org.jboss.Main.boot(Main.java:150)
              at org.jboss.Main$1.run(Main.java:388)
              at java.lang.Thread.run(Thread.java:484)
              05:57:49,847 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
              05:57:49,848 INFO [MainDeployer] Undeploying file:/usr/local/jboss3.2/server/default/conf/jboss-service.xml
              05:57:49,849 ERROR [MainDeployer] Undeployment cleanup failed: file:/usr/local/jboss3.2/server/default/conf/jboss-service.xml
              java.lang.NullPointerException:
              at org.jboss.deployment.DeploymentInfo.cleanup(DeploymentInfo.java:328)
              at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:565)
              at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:481)
              at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:368)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
              at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:808)
              at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:783)
              at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:771)
              05:57:49,852 INFO [MainDeployer] Undeployed 1 deployed packages
              05:57:49,853 INFO [Server] Shutting down all services
              Shutting down
              05:57:49,853 INFO [ServiceController] Stopping 3 services
              05:57:49,854 INFO [SARDeployer] Stopping
              05:57:49,855 INFO [MainDeployer] Removing deployer: org.jboss.deployment.SARDeployer@1266b02e
              05:57:49,855 INFO [SARDeployer] Stopped
              05:57:49,856 INFO [JARDeployer] Stopping
              05:57:49,856 INFO [JARDeployer] Stopped
              05:57:49,857 INFO [MainDeployer] Stopping
              05:57:49,857 INFO [MainDeployer] Stopped
              05:57:49,857 INFO [ServiceController] Stopped 3 services
              05:57:49,862 INFO [Server] Shutdown complete
              Shutdown complete
              Halting VM

              ##### End of Senario 1 ######

              Senario 2) Build JBoss 3.0.x from src:

              Searching for build.xml ...
              Buildfile: /home/walter/jboss-3.0.8-src/build/build.xml
              Trying to override old definition of task property

              _buildmagic:init:

              _buildmagic:init:local-properties:

              _buildmagic:init:buildlog:

              configure:
              [echo] groups: default
              [echo] modules: jmx,common,system,j2ee,naming,management,server,security,messaging,connector,cluster,jetty,varia,jboss.net,iiop,tomcat41

              init:

              _buildmagic:modules:most:
              [execmodules]
              [execmodules] ======================================================================
              [execmodules] == Executing 'most' in module 'jmx'...
              [execmodules] ==

              _buildmagic:init:

              configure:

              init:

              compile-mbean-sources:

              compile-classes:

              compile:

              jars:

              most:
              [execmodules]
              [execmodules] ==
              [execmodules] == Finished with 'most' in module 'jmx'.
              [execmodules] ======================================================================
              [execmodules]

              _module-jmx-most:
              [execmodules]
              [execmodules] ======================================================================
              [execmodules] == Executing 'most' in module 'common'...
              [execmodules] ==

              _buildmagic:init:

              configure:

              init:

              compile-mbean-sources:
              0 [main] INFO XDocletMain.start - Running
              INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
              (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
              The referring classes do not import any fully qualified classes matching these classes.
              However, since no packages are imported, xjavadoc has assumed that the referred classes
              belong to the same package as the referring class. The classes are:
              /home/walter/jboss-3.0.8-src/common/src/main/org/jboss/util/property/jmx/SystemPropertyClassValue.java --> SystemPropertyClassValueMBean qualified to org.jboss.util.property.jmx.SystemPropertyClassValueMBean

              compile-classes:
              [javac] Compiling 177 source files to /home/walter/jboss-3.0.8-src/common/output/classes
              /home/walter/jboss-3.0.8-src/common/src/main/org/jboss/util/property/jmx/SystemPropertyClassValue.java:28: interface expected here
              implements SystemPropertyClassValueMBean
              ^
              /home/walter/jboss-3.0.8-src/common/src/main/org/jboss/logging/XPriority.java:77: warning: toPriority(java.lang.String) in org.apache.log4j.Priority has been deprecated
              public static Priority toPriority(String name)
              ^
              1 error
              1 warning

              BUILD FAILED
              file:/home/walter/jboss-3.0.8-src/common/build.xml:260: Compile failed; see the compiler error output for details.

              Total time: 18 seconds

              ##### End of Senario 2 ######

              I tried building JBoss 3.2.x from src as well and I got the same error msg as with 3.0.x.

              Any suggestions would be highly appreciated!!


              • 4. Re: JBoss with FreeBSD and jdk 1.3
                wmyuan Newbie

                Oh, the runtime errors you see were generated with blackdown 1.3.1 but the same errors were generated with jdk1.3.1.

                • 5. Re: JBoss with FreeBSD and jdk 1.3
                  Blandger Newbie

                  Did someone resolve that problem ? Is only way to get CVS sources? But I'd like to build Jboss + Tomcat...

                  I have the same error:
                  ............
                  05:57:49,835 ERROR [Server] Failed to start
                  java.lang.AbstractMethodError: org/jboss/deployment/SubDeployerSupport.accepts
                  at org.jboss.deployment.MainDeployer.findDeployer(MainDeployer.java:881)
                  at org.jboss.deployment.MainDeployer.init(MainDeployer.java:680)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)........

                  I have this problem on the - 4.7-RELEASE

                  java version "1.3.1_04"
                  Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
                  Classic VM (build 1.3.1_04-b02, green threads, nojit)

                  We tired Jboss3.2.1 + Tomcat 4.1 on freeBSD 4.7 - NO sucess.
                  We tried Jboss 3.0.8 + Tomcat 4.1 on freeBSD 4.7- NO success also.

                  They don't run in that environment.
                  We tried that versions on the Windows 2000 + 1.3.1_x/1.4.2 everything is fine.

                  Help pls to run 3.0.8 or 3.2.1 on the production freeBSD server.

                  Now we use Jboss 3.0.0 but it has one very annoying bug with ejb-jar.xml descriptor.

                  <container-transaction>

                  <ejb-name>UidKeyGenerator</ejb-name>
                  <method-name>*</method-name>

                  <trans-attribute>RequiresNew</trans-attribute>
                  </container-transaction>

                  <container-transaction>... RequiresNew....</container-transaction> MUST be placed OUTSIDE of </assembly-descriptor> tag for the proper work. NOT inside <assembly-descriptor>...</assembly-descriptor>.

                  It is fixed in the 3.0.8, 3.2.1

                  Hope for you advice.

                  • 6. Re: JBoss with FreeBSD and jdk 1.3
                    5amyan Newbie

                    jboss built fine on my FreeBSD 4.8 with:
                    java version "1.4.2-p5"
                    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-reed_03_dec_2003_16_53)
                    Java HotSpot(TM) Client VM (build 1.4.2-p5-reed_03_dec_2003_16_53, mixed mode)

                    • 7. Re: JBoss with FreeBSD and jdk 1.3
                      alexandervn Newbie

                      FreeBSD 5.1
                      Problem:
                      make
                      ===> jboss-3.2.3_1 depends on file: /usr/local/jdk1.4.2/bin/java - not found
                      ===> Verifying install for /usr/local/jdk1.4.2/bin/java in /usr/ports/java/jdk14
                      ===> jdk-1.4.2p6_3 depends on executable: gm4 - found
                      ===> jdk-1.4.2p6_3 depends on executable: zip - found
                      ===> jdk-1.4.2p6_3 depends on file: /usr/X11R6/lib/libXm.so - found
                      ===> jdk-1.4.2p6_3 depends on file: /usr/local/include/nspr/prtypes.h - found
                      ===> jdk-1.4.2p6_3 depends on file: /usr/local/linux-sun-jdk1.4.2/bin/javac - not found
                      ===> Verifying install for /usr/local/linux-sun-jdk1.4.2/bin/javac in /usr/ports/java/linux-sun-jdk14
                      ======================================================================
                      Warning: This JDK may be unstable. You are advised to use the native
                      FreeBSD JDK, in ports/java/jdk14.

                      This Java VM will attempt to obtain some system information by
                      accessing files in linux's procfs. You must install the Linux
                      emulation procfs filesystem for this to work correctly. The JVM
                      will exhibit various problems otherwise. This can be accomplished
                      by adding the following line to your /etc/fstab file:

                      linprocfs /compat/linux/proc linprocfs rw 0 0

                      and then, as root, executing the commands:

                      kldload linprocfs
                      mount /compat/linux/proc

                      ======================================================================
                      ===> Vulnerability check disabled
                      ===> Extracting for linux-sun-jdk-1.4.2.03
                      >> Checksum OK for j2sdk-1_4_2_03-linux-i586.bin.
                      ===> linux-sun-jdk-1.4.2.03 depends on file: /compat/linux/lib/libc.so.6 - found
                      ELF binary type "0" not known.
                      /usr/ports/java/linux-sun-jdk14/work/install.sfx: 1: Syntax error: "(" unexpected
                      *** Error code 2

                      Stop in /usr/ports/java/linux-sun-jdk14.
                      *** Error code 1

                      Stop in /usr/ports/java/jdk14.
                      *** Error code 1

                      Stop in /usr/ports/java/jboss3.

                      ?????