10 Replies Latest reply on Mar 25, 2003 10:53 AM by Julien Dubois

    Jboss 3.0.6 and IBM jdk

    Antonio Da Silva Newbie

      Hi,

      with IBM JDK
      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
      Classic VM (build 1.3.1, J2RE 1.3.1 IBM build cxia32131-20021102 (JIT enabled: jitc))

      on linux machine, the Jboss 3.0.6 doesn't start
      when I run a './run.sh -c all' i 've got the stack :

      15:55:42,770 ERROR [MainDeployer] could not start deployment: file:/usr/local/jboss-3.0.6/server/nvdcms/conf/jboss-service.xml
      java.lang.AbstractMethodError: org/jboss/deployment/scanner/AbstractDeploymentScanner.scan
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      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:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      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:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      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:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:512)
      15:55:42,775 ERROR [Server] start failed


      with Jboss 3.0.5, I had some problems too ...

        • 1. Re: Jboss 3.0.6 and IBM jdk
          Tranchida Giampaolo Newbie

          Same problem with IBM jdk 1.4 for linux

          • 2. Jboss 3.0.6, Linux and IBM jdk
            Julien Dubois Newbie

            Hi,

            I can't start JBoss with :

            JBoss 3.0.6
            Debian GNU/Linux 3.0 stable
            IBM jdk 1.4.0

            Everything is working fine with Sun's JVM, so the problem is with IBM's JDK.

            Here is the stack trace :

            java.lang.AbstractMethodError: org/jboss/deployment/scanner/AbstractDeploymentScanner.scan
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:40)
            at java.lang.reflect.Method.invoke(Method.java:335)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:40)
            at java.lang.reflect.Method.invoke(Method.java:335)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:40)
            at java.lang.reflect.Method.invoke(Method.java:335)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
            at org.jboss.Main.boot(Main.java:148)
            at org.jboss.Main$1.run(Main.java:381)
            at java.lang.Thread.run(Thread.java:566)

            • 3. Re: Jboss 3.0.6, Linux and IBM jdk
              Noel Rocher Apprentice

              Hi,

              Linux (RH7.3) jboss 3.0.4-tomcat

              I can start jboss without any problem with JRockit 8 (BEA's JVM) but my JSPs that use my webapps classes can't compile.

              PS : Pleased to meet a Parisian fellow :o)

              • 4. Re: Jboss 3.0.6, Linux and IBM jdk
                Julien Dubois Newbie

                Hello fellow Parisian!!
                I'm a bit afraid of JRockit on Linux... Do you know of any stability/licencing problems??
                Concerning the JSP compilation, I know that Jetty & Tomcat both use jasper to compile their JSPs. In its latest version, it's running as an Ant script. You can have a try with this :




                This should compile your JSPs as the servlet container would.
                If it's not working, check your javac compiler, maybe Ant can't find it?

                Julien Dubois.

                • 5. Re: Jboss 3.0.6, Linux and IBM jdk
                  Julien Dubois Newbie

                  Noel,

                  I tried with JRockit and had no problem with the JSPs.

                  I'm using :
                  Linux Mandrake 8.2
                  JBoss 3.0.6 (with Jetty, unlike you, which might cause the difference)
                  JRockit 8 (downloaded today)

                  So I would recommand you try using Jetty.

                  I'm using Struts + Tiles + lots of taglibs, so if it's working for me it should work for anybody!

                  BTW, my app is now a *lot* faster, JRockit really rocks ;-)

                  Julien Dubois.

                  • 6. Re: Jboss 3.0.6 and IBM jdk
                    Dominique Bordereaux Newbie

                    I had the same problem with the pre-compiled version.

                    I decided so to recompile it with IBM version of javac.
                    It first failed with a mysterious "[execmodules] error: The encoding null is not supported"

                    My LANG variable was set to en_US.UTF-8 (RH8.0 defaults).
                    After setting it to en_US, it succeeds.

                    The freshly compiled version no longer suffers from this problem.

                    • 7. Re: Jboss 3.0.6 and IBM jdk
                      Nigel Birch Newbie

                      Hi,

                      I need to di this too, but I'm not sure how to modify the JBoss build to use an IBM JDK. Could you describe what changes are needed?

                      Thanks
                      NBirch

                      • 8. Re: Jboss 3.0.6 and IBM jdk
                        Julien Dubois Newbie

                        Hi,

                        Why are you all recompiling JBoss with IBM's jdk? All JVMs are supposed to be compatible at the byte code level - ya know the "write once, run everywhere" stuff...
                        IMHO recompiling with another JDK should not produce a different result. If it does, then there's a compatibility problem between JDKs. In that case, I would stick with Sun's JDK, and not try to use Jikes (I don't want to have any faulty byte code in my classes).
                        nbirch, if you want to use IBM's jdk (even for recompiling, if you think that's a good idea), just change your JDK. I'm having a symb link to my jdk (/usr/local/jdk) which can point to Sun's, IBM's or BEA's JDK, depending on my mood. It's extremly simple and works perfectly well.

                        Julien Dubois.

                        • 9. Re: Jboss 3.0.6, Linux and IBM jdk
                          Noel Rocher Apprentice

                          Hi,

                          JRockit on Windows and JBoss3.0.4-Tomcat it rocks.

                          >> Julien :
                          I afraid that the <jspc ...> directive doesn't exist in the tomcat version. Or I didn't find it yet.
                          With Jetty we had a problem with multipart forms.

                          Did you ever notice a memory usage growth with your applications ?

                          Even sometimes some memory lost that you can only recover with a reboot (even on Linux !!!) ?

                          Noel

                          • 10. Re: Jboss 3.0.6, Linux and IBM jdk
                            Julien Dubois Newbie

                            Hi,

                            Sorry, in fact jspc is an optional Ant task, have a look here :
                            http://ant.apache.org/manual/OptionalTasks/jspc.html
                            (it also tells you which JARs you need to add to the Ant classpath).

                            Concerning the growth in the memory usage, it could be caused by this same JSP compilation. There's a known bug in Sun's javac that causes a memory leak (see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Production%20Configuration)

                            That's the main reason why I wanted to change my JVM.
                            I'm sure that with a lot of hot deployment with JBoss this becomes a major issue.
                            Before using JRockit I used to restart my JBoss server a lot to prevent this!
                            However, I've never had the need to reboot any Linux server (but in production I'm running Solaris).

                            Julien Dubois.