RE: [Mc4j-development] mc4j and mx4j in Linux
Brought to you by:
ghinkl
From: Gregory H. <gh...@sa...> - 2004-02-11 21:36:47
|
MC4J only works with MX4J 1.1.1 in the current release (beta 3). From = the information below, it appears that you are trying to connect it to = an adaptor running on the 2.0 beta 1 version of MX4J. The server and the = client must be running the same versions of of MX4J for the RMI = connection to work.=20 Very soon, I'll be releasing a new beta with support for JSR 160 style = connections. The support is in CVS, but there are a few things to clean = up first. If you are trying to connect to MX4J 2.0 it would probably be = easiest to wait for the next MC4J release and use this type of = connection. I'm planning for the release to happen Friday. Greg Hinkle -----Original Message----- From: mc4...@li... = [mailto:mc4...@li...] On Behalf Of = CRISTINA DIAZ DIAZ Sent: Wednesday, February 11, 2004 5:52 AM To: mc4...@li... Subject: [Mc4j-development] mc4j and mx4j in Linux Hello all! I am quite new to JMX and I am trying to install MC4J using MX4J. I am having some problems that I do not know hoe to resolve, that is why I am writing to this list for help. I have installed MC4JBeta 1.2 Beta 3 and MX4J 1.1.1 over Sun JDK 1.4.2 on Debian Linux. I have put mx4j libraries into jre/lib/ext and I have run the console. When I try to create an MX4J connection I receive this exeception: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:=20 java.lang.ClassNotFoundException: mx4j.tools.adaptor.rmi.RMIAdaptor_Stub] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:92)= at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:98)= at javax.naming.InitialContext.lookup(InitialContext.java:347) at mx4j.connector.rmi.RMIConnector.connect(RMIConnector.java:110) at org.mc4j.console.connection.Mx4jConnectionNode.connect(Mx4jConnectionNode= .java:73) at org.mc4j.console.connection.ReconnectAction.performAction(ReconnectAction= .java:40) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440) at org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.= java:121) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677= ) Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:=20 java.lang.ClassNotFoundException: mx4j.tools.adaptor.rmi.RMIAdaptor_Stub at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:88)= ... 10 more Caused by: java.lang.ClassNotFoundException: mx4j.tools.adaptor.rmi.RMIAdaptor_Stub at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:20= 0) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)= at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) [catch] ... 12 more =3D=3D> java.rmi.UnmarshalException: error unmarshalling return; nested exception is:=20 java.lang.ClassNotFoundException: mx4j.tools.adaptor.rmi.RMIAdaptor_Stub at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:88)= at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:98)= at javax.naming.InitialContext.lookup(InitialContext.java:347) at mx4j.connector.rmi.RMIConnector.connect(RMIConnector.java:110) at org.mc4j.console.connection.Mx4jConnectionNode.connect(Mx4jConnectionNode= .java:73) at org.mc4j.console.connection.ReconnectAction.performAction(ReconnectAction= .java:40) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440) at org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.= java:121) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677= ) Caused by: java.lang.ClassNotFoundException: mx4j.tools.adaptor.rmi.RMIAdaptor_Stub at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:20= 0) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)= at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) [catch] ... 12 more I have look into MX4J 1.1.1 libraries (mx4j-tools.jar and mx4j-jmx.jar) but I did not found the class mx4j.tools.adaptor.rmi.RMIAdaptor_Stub. Instead there is a class called mx4j.adaptor.rmi.RMIAdaptor_Stub. So I suppose that is why it throws that exception. I have then download mx4j 2.0 Beta 1, but that class did not appear in any of its libraries. Instead, it appears in the sources. So I have downloaded and recompile mx4j 2.0 Beta 2 src and I have generate the libraries. I have put the libraries again in the jre/lib/ext and I have launch the console again. I try to create the connection again but now I receive this exception: ava.lang.ClassCastException at mx4j.connector.rmi.jrmp.JRMPConnector.narrow(JRMPConnector.java:28) at mx4j.connector.rmi.RMIConnector.connect(RMIConnector.java:112) at org.mc4j.console.connection.Mx4jConnectionNode.connect(Mx4jConnectionNode= .java:73) at org.mc4j.console.connection.ReconnectAction.performAction(ReconnectAction= .java:40) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440) at org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.= java:121) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677= ) =20 So do you know which version of MX4J and which one of MC4J to make it works? Can you pass that versions to me? Is there any document explaining how to configure this? Can anybody help me? I am not register in the list, so please answer with copy to me. Thank you very much in advance Cristina D=EDaz ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Mc4j-development mailing list Mc4...@li... https://lists.sourceforge.net/lists/listinfo/mc4j-development |