I had 1.4.2 and now I have jdk 1.5....but it doesn't work. I have this error when I try to connect MC4j to tomcat5.5:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: javax.rmi.ssl.SslRMIClientSocketFactory]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
at org.mc4j.console.connection.JSR160ConnectionNode.connect(JSR160ConnectionNode.java:106)
at org.mc4j.console.ConnectAction.performAction(ConnectAction.java:76)
at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
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:686)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: javax.rmi.ssl.SslRMIClientSocketFactory]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:92)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1785)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1751)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 17 more
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: javax.rmi.ssl.SslRMIClientSocketFactory
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:88)
... 22 more
Caused by: java.lang.ClassNotFoundException: javax.rmi.ssl.SslRMIClientSocketFactory
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:200)
at java.i

bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at java.i

bjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.i

bjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.i

bjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.i

bjectInputStream.readObject(ObjectInputStream.java:324)
at sun.rmi.transport.tcp.TCPEndpoint.read(TCPEndpoint.java:504)
at sun.rmi.transport.LiveRef.read(LiveRef.java:254)
at sun.rmi.server.UnicastRef2.readExternal(UnicastRef2.java:54)
at java.rmi.server.RemoteObject.readObject(RemoteObject.java:420)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.i

bjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
at java.i

bjectInputStream.readSerialData(ObjectInputStream.java:1746)
at java.i

bjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.i

bjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.i

bjectInputStream.readObject(ObjectInputStream.java:324)
[catch] ... 24 more
telnet now works on port 9004 but i don't undestand this kind of error...