Downloading classes from JBoss server
kalyan120 Nov 11, 2004 9:45 AMThough a crosspost, I thought that this is the appropriate forum. Please see below:
Hi,
I am running a client that accesses a bean that is deployed on a JBoss 3.2.5 server. I get a ClassNotFoundException for the bean home class while looking it up using JNDI. I have looked at the previous posts on the same issue, and we have installed the RMISecurityManager on the client and have given the client AllPermissions using policy file. But still the Home interface is not getting downloaded.
Let us know if I am missing something else in order to enable auto download of classes from the Server.
Here is the stack trace:
javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: loadtest.server.ServerHome] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:654) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509) at javax.naming.InitialContext.lookup(Unknown Source) at loadtest.client.AbstractClient.run(AbstractClient.java:43) at loadtest.client.JNPClient.run(JNPClient.java:29) at loadtest.client.LoadTestClient.<init>(LoadTestClient.java:39) at loadtest.client.LoadTestClient.main(LoadTestClient.java:101) Caused by: java.lang.ClassNotFoundException: loadtest.server.ServerHome at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at sun.rmi.server.LoaderHandler.loadProxyInterfaces(Unknown Source) at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source) at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source) at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source) at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source) at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source) at java.io.ObjectInputStream.readProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.rmi.MarshalledObject.get(Unknown Source) at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:552)
Thanks,
Kalyan.