Hi!
I'm working on an application with a client and a server. I'm using
JBoss 4.2 and
Java 1.6.
On client side I bind an object to JNDI and try to lookup this object on server side.
CLIENT:
Here I bind the object to JNDI:
This is the Callback class:
After the binding I can see the object at the JNDIView in Global JNDI Namespace:
+- a5xk891BCServiceProxyPostboxTask 41232010727767 (class: de.postbox.proxies.bcservice.Callback)
SERVER:
The remote interface BCServiceProxy which the Callback class implements is in a JAR which is deyploed on the server.
Now I try to make the lookup on server side:
This results in an exception:
javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: de.postbox.proxies.bcservice.Callback (no security manager: RMI class loader disabled)]
Why do I get this exception?
Is it because I see the concrete class in JNDIView (see above). Shouldn't I see there something like this: +- a5xk891BCServiceProxyPostboxTask 41232010727767 (proxy: $Proxy99 implements interface de.postbox.services.bcservice.proxy.BCServiceProxy)?
Any help will be greatly appreciated!