We have been using Jonas2 with Linux and the Sun JDK 1.2.2 for Linux.
We are trying to switch to the IBM Java 2 1.3 JRE for Linux, because it is
supposed to be a lot faster.
After running IBM's "rmiregistry", we run "EJBServer" and get the following
ClassNotFoundException:

----------
JOnAS Server, version 2.0, running on rmi.
Cannot rebind UserTransaction:javax.naming.ConfigurationException [Root
exception is java.rmi.StubNotFoundException: Stub class not found:
com.sun.jndi.rmi.registry.ReferenceWrapper_Stub; nested exception is: 
        java.lang.ClassNotFoundException:
com/sun/jndi/rmi/registry/ReferenceWrapper_Stub]
JOnAS: Cannot start Transaction Service
javax.naming.ConfigurationException.  Root exception is
java.rmi.StubNotFoundException: Stub class not found:
com.sun.jndi.rmi.registry.ReferenceWrapper_Stub; nested exception is: 
        java.lang.ClassNotFoundException:
com/sun/jndi/rmi/registry/ReferenceWrapper_Stub
java.lang.ClassNotFoundException:
com/sun/jndi/rmi/registry/ReferenceWrapper_Stub
        at java.lang.Class.forName1(Native Method)
        at java.lang.Class.forName(Class.java:134)
        at
sun.rmi.server.RemoteProxy.loadClassFromClass(RemoteProxy.java:200)
        at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:100)
        at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:62)
        at
sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:157)
        at
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:120)
        at
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:107)
        at
java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:27
8)
        at
java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:18
2)
        at
java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:82)
        at
java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:69)
        at
com.sun.jndi.rmi.registry.ReferenceWrapper.<init>(ReferenceWrapper.java:37)
        at
com.sun.jndi.rmi.registry.RegistryContext.encodeObject(RegistryContext.java:
405)
        at
com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:135)
        at
com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:142)
        at javax.naming.InitialContext.rebind(InitialContext.java:367)
        at
org.objectweb.jonas.naming.java.javaURLContext.rebind(javaURLContext.java:25
7)
        at javax.naming.InitialContext.rebind(InitialContext.java:367)
        at
org.objectweb.jonas.naming.NamingManager.rebind(NamingManager.java:226)
        at
org.objectweb.jonas.jtm.TransactionService.<init>(TransactionService.java:95
)
        at org.objectweb.jonas.server.Server.main(Server.java:89)
----------

We can't figure out why the class can't be found! The class in question is
"com.sun.jndi.rmi.registry.ReferenceWrapper_Stub". As a test, we issue the
following command:

java com.sun.jndi.rmi.registry.ReferenceWrapper_Stub

And we get the following error:

Exception in thread "main" java.lang.NoSuchMethodError: main

This says that Java _was_ able to find the class (but it had no main), as
opposed to coming back with ClassNotFoundException again.

Has anyone else seen this behavior?

Thank you,
Bryan

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to