1 Reply Latest reply on Apr 15, 2004 9:30 PM by starksm64

    Building JBoss 3.0.7 from source

    bgw2

      I'm trying to build JBoss 3.0.7 from the source distribution (jboss-3.0.7-src.tgz downloaded from SourceForge). I'm trying to build it without debug enabled in the Java class code. Seems to build without error (get "Build Successful" at the end of the Ant output), but doesn't deploy correctly at runtime. There's two classes missing from server/default/lib/jboss.jar:

      $ diff jboss-jar.list jboss-jar-nodebug.list
      415,416d414
      < org/jboss/invocation/jrmp/server/JRMPInvoker_Stub.class
      < org/jboss/invocation/jrmp/server/JRMPInvoker_Stub.java

      These java files are present in the source that I'm building:

      % find jboss-3.0.7-src -name JRMPInvoker.java
      jboss-3.0.7-src/server/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java
      % find jboss-3.0.7-src -name RMIAdaptorImpl.java
      jboss-3.0.7-src/server/src/main/org/jboss/jmx/adaptor/rmi/RMIAdaptorImpl.java

      Grepping through the build output, there are a couple of warnings regarding these files:

      % less build-release.log
      ...
      compile-rmi:
      [rmic] Unable to verify class org.jboss.invocation.jrmp.server.JRMPInvoker. It is not defined.
      [rmic] Unable to verify class org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl. It is not defined.
      ...

      At runtime, I get the following:

      ...
      2004-04-15 15:14:44,005 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.deployment.EARDeployer@8238f4
      2004-04-15 15:14:44,006 INFO [org.jboss.deployment.EARDeployer] Started
      2004-04-15 15:14:44,006 INFO [org.jboss.invocation.jrmp.server.JRMPInvoker] Starting
      2004-04-15 15:14:44,034 ERROR [org.jboss.invocation.jrmp.server.JRMPInvoker] Failed
      java.rmi.StubNotFoundException: Stub class not found: org.jboss.invocation.jrmp.server.JRMPInvoker_Stub; nested exception is:
      java.lang.ClassNotFoundException: org.jboss.invocation.jrmp.server.JRMPInvoker_Stub
      at sun.rmi.server.RemoteProxy.getStub(Unknown Source)
      at sun.rmi.server.RemoteProxy.getStub(Unknown Source)
      ...

      What am I doing wrong ?

      This is on Solaris 5.8, J2SE 1.4.2_03-b02. I built using:

      % build/build.sh init
      % build/build.sh release-tgz

      Thanks in advance,

      Bruce

        • 1. Re: Building JBoss 3.0.7 from source
          starksm64

          Just doing build.sh release-tgz on RH9 using JDK1.4.2_04 works for me:

          [starksm@dedicated74 build]$ java -version
          java version "1.4.2_04"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
          Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
          [starksm@dedicated74 build]$ ./build.sh release-tgz
          _buildmagic:release:tar:
           [tar] Building tar: /home/starksm/JBoss/Releases/jboss-3.0.7-src/build/output/jboss-3.0.7.tar
          
          _buildmagic:release:tgz:
           [gzip] Building: /home/starksm/JBoss/Releases/jboss-3.0.7-src/build/output/jboss-3.0.7.tgz
          
          release-tgz:
          
          BUILD SUCCESSFUL
          Total time: 1 minute 47 seconds
          [starksm@dedicated74 build]$ jar -tf output/jboss-3.0.7/server/default/lib/jboss.jar | grep _Stub
          org/jboss/invocation/jrmp/server/JRMPInvoker_Stub.java
          org/jboss/invocation/jrmp/server/JRMPInvoker_Stub.class
          org/jboss/tm/usertx/server/UserTransactionSessionImpl_Stub.java
          org/jboss/tm/usertx/server/UserTransactionSessionFactoryImpl_Stub.java
          org/jboss/tm/usertx/server/UserTransactionSessionImpl_Stub.class
          org/jboss/tm/usertx/server/UserTransactionSessionFactoryImpl_Stub.class