ClassNotFoundException: org.jboss.proxy.ClientContainer
abuehler Sep 18, 2002 10:13 AMHi,
im gettin the following exception when I try to access a simple "HelloWorld" (no jokes :-) ) bean.
The Bean is deployed and "should" work correct.
javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: org.jboss.proxy.ClientContainer (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:313)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:127)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:138)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:913)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at java.rmi.MarshalledObject.get(MarshalledObject.java:133)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:449)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at com.heiler.client.HelloClient.main(HelloClient.java:20)
Exception in thread "main"
The Code I use to call the bean:
package com.heiler.client;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.naming.directory.*;
import com.heiler.tests.HelloWorld;
import com.heiler.tests.HelloWorldHome;
public class HelloClient
{
public static void main(String[] args) throws Exception
{
System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url", "localhost:1099");
InitialContext lContext = new InitialContext();
HelloWorldHome lHome = (HelloWorldHome) lContext.lookup("heiler.com.tests.HelloWorld");
HelloWorld hello = lHome.create();
System.out.println(hello.hello());
hello.remove();
}
}
Thanx for your help
Andreas