11 Replies Latest reply on Feb 20, 2004 8:56 AM by mstruk

    JBOSS 3.2 + JDK 1.5

    sachinshah

      HI,

      I am trying to test my application on an early access release of 1.5. For this i need to run the JBoss server with jdk 1.5. When i am trying to run server with 1.5 it is giving my following error and refuses to start

      javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepos
      itory,name=Default
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Defaul
      tMBeanServerInterceptor.java:1018)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
      BeanServerInterceptor.java:812)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792
      )
      at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:
      480)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:316)

      Can anyone have solution to this. I can not run my server on 1.3 and client on 1.5 cause this does not help to test my application.

      Please this is urgent

      sachin

        • 1. Re: JBOSS 3.2 + JDK 1.5

          It won't work since JDK 1.5 bundles Sun's implementation of JMX with it.

          • 2. Re: JBOSS 3.2 + JDK 1.5
            sachinshah

            Hi,

            Any plans to fix this problem? I need to test my application on 1.5, due to a bug in 1.4 we haven't been able to shift to 1.4 from 1.3, now i would like to check if the bug is fixed or are there any other problem.

            First i tried running server on 1.3 and client on 1.5 but since we are using crypto which is again giving problems, i mean dencyrption does not give the same text, which is again suprising.

            Can anyone help me out make this possible?

            sachin

            • 3. Re: JBOSS 3.2 + JDK 1.5

              Eventually, yes. Not in short term though, especially since 1.5 hasn't been released yet.

              • 4. Re: JBOSS 3.2 + JDK 1.5
                french_c

                Just startet to play around with current JBOSS CVS HEAD and JDK 1.5 (which is 4.x and not 3.2, I know).

                Apart from fixes within JBoss it seems a bug in JDK 1.5 ModelMBeanInfoSupport prevents running JBoss anyway. Looks like there is still a long way to go.

                • 5. Re: JBOSS 3.2 + JDK 1.5
                  french_c

                   

                  "french_c" wrote:
                  Apart from fixes within JBoss it seems a bug in JDK 1.5 ModelMBeanInfoSupport prevents running JBoss anyway. Looks like there is still a long way to go.


                  Should have waited a bit. The current b-31 seems to have a number of JMX bugs. No way getting JBoss up and running without patching the JDK release.

                  • 6. Re: JBOSS 3.2 + JDK 1.5
                    sachinshah

                    Do you mean to say that there is no way by which you can replace the JMX implementation and i will have to wait till the time these bugs are fixed

                    sachin

                    • 7. Re: JBOSS 3.2 + JDK 1.5
                      french_c

                      Well yes, basically you need to wait.

                      But there are still other issues within JBoss (such as classloader problems) which will require some work from the jboss team (or you ;) before you will be able to use JBoss and JDK 1.5.

                      • 8. Re: JBOSS 3.2 + JDK 1.5
                        mstruk

                        Here's what you can hack up:

                        Go to your jdk1.5 JAVA_HOME

                        Then go to jre/lib

                        make a backup of rt.jar

                        Open rt.jar in MidnightCommander or with WinZip

                        Go to javax directory in the archive and delete 'management' directory and everything in it.

                        Exit WinZip or MidnightCommander

                        run your jboss as usual and smile ;)

                        • 9. Re: JBOSS 3.2 + JDK 1.5

                          Now that's a neat hack! ;-)

                          • 10. Re: JBOSS 3.2 + JDK 1.5
                            sachinshah

                            Hi,

                            Back with questions. I tried starting JBoss 3.2.1 with JRE 1.5-beta after removing 'management' directory from rt.jar. The server did started but still not usable. can you help

                            when i did JNDI lookup for a bean it printed following exception on server with no problems on client
                            ------------------------------------------------------------------------------------

                            2004-02-17 13:07:20,716 ERROR [STDERR] java.lang.ClassNotFoundException: [Ljava.lang.Object;
                            2004-02-17 13:07:20,766 ERROR [STDERR] at java.net.URLClassLoader+1.run(URLClassLoader.java:200)
                            2004-02-17 13:07:20,776 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:85)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1535)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1582)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1290)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:78)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at org.jboss.invocation.MarshalledInvocation.getArguments(MarshalledInvocation.java:324)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:592)
                            2004-02-17 13:07:20,836 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:206)
                            2004-02-17 13:07:20,836 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:51)
                            2004-02-17 13:07:20,856 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
                            2004-02-17 13:07:21,046 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
                            2004-02-17 13:07:21,066 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
                            2004-02-17 13:07:21,076 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
                            2004-02-17 13:07:21,086 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
                            2004-02-17 13:07:21,086 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                            2004-02-17 13:07:21,117 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:310)
                            2004-02-17 13:07:21,127 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:694)
                            2004-02-17 13:07:21,137 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            2004-02-17 13:07:21,157 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            2004-02-17 13:07:21,177 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            2004-02-17 13:07:21,197 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:494)
                            2004-02-17 13:07:21,207 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                            2004-02-17 13:07:21,217 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
                            2004-02-17 13:07:21,227 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
                            2004-02-17 13:07:21,227 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            2004-02-17 13:07:21,247 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            2004-02-17 13:07:21,257 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            2004-02-17 13:07:21,257 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:494)
                            2004-02-17 13:07:21,257 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.Transport+1.run(Transport.java:153)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at java.lang.Thread.run(Thread.java:566)
                            ------------------------------------------------------------------------------------

                            And when i call create method on home ejbCreate gets called without problem, but when i actually invoke biz method on created instance it gives following exception

                            ------------------------------------------------------------------------------------
                            2004-02-17 13:07:20,716 ERROR [STDERR] java.lang.ClassNotFoundException: [Ljava.lang.Object;
                            2004-02-17 13:07:20,766 ERROR [STDERR] at java.net.URLClassLoader+1.run(URLClassLoader.java:200)
                            2004-02-17 13:07:20,776 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:85)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1535)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                            2004-02-17 13:07:20,796 ERROR [STDERR] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1582)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1290)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:78)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at org.jboss.invocation.MarshalledInvocation.getArguments(MarshalledInvocation.java:324)
                            2004-02-17 13:07:20,816 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:592)
                            2004-02-17 13:07:20,836 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:206)
                            2004-02-17 13:07:20,836 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:51)
                            2004-02-17 13:07:20,856 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
                            2004-02-17 13:07:21,046 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
                            2004-02-17 13:07:21,066 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
                            2004-02-17 13:07:21,076 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
                            2004-02-17 13:07:21,086 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
                            2004-02-17 13:07:21,086 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                            2004-02-17 13:07:21,117 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:310)
                            2004-02-17 13:07:21,127 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:694)
                            2004-02-17 13:07:21,137 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            2004-02-17 13:07:21,157 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            2004-02-17 13:07:21,177 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            2004-02-17 13:07:21,197 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:494)
                            2004-02-17 13:07:21,207 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                            2004-02-17 13:07:21,217 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
                            2004-02-17 13:07:21,227 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
                            2004-02-17 13:07:21,227 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            2004-02-17 13:07:21,247 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            2004-02-17 13:07:21,257 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                            2004-02-17 13:07:21,257 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:494)
                            2004-02-17 13:07:21,257 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.Transport+1.run(Transport.java:153)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
                            2004-02-17 13:07:21,267 ERROR [STDERR] at java.lang.Thread.run(Thread.java:566)
                            ------------------------------------------------------------------------------------

                            Not able to understand where am i going wrong. As i understand server is failing while intercepting the method call to ejbObject but what is wrong?

                            Can you help me with this.

                            Sachin

                            "mstruk" wrote:
                            Here's what you can hack up:

                            Go to your jdk1.5 JAVA_HOME

                            Then go to jre/lib

                            make a backup of rt.jar

                            Open rt.jar in MidnightCommander or with WinZip

                            Go to javax directory in the archive and delete 'management' directory and everything in it.

                            Exit WinZip or MidnightCommander

                            run your jboss as usual and smile ;)



                            • 11. Re: JBOSS 3.2 + JDK 1.5
                              mstruk

                              Stick to 1.5.0 alfa

                              With 1.5.0 beta looks like context classloaders somehow get screwed up on RMI.

                              Would be interesting to find out if it's a JDK bug or a permanent change that will require jboss's code to be modified.