Hi,

I'm trying to call a bean from a servlet. When starting the webserver
(Enhydra 3.0.1), I get the following exception:

java.lang.ClassNotFoundException: Beans.CalcHome
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at org.jboss.proxy.ProxyProxy.getClasses(ProxyProxy.java:58)
    at org.jboss.proxy.ProxyProxy.readResolve(ProxyProxy.java:84
    at java.lang.reflect.Method.invoke(NativeMethod)
    at java.io.ObjectStreamClass.invokeMethod(ObjectStreamClass.java:1615)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:393)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
    ....
    ....

When I call the same bean from a standalone Java program (using the same
code as for the servlet), I have no problems. Here ist the code to get the
bean's reference:

InitialContext ctx=new InitialContext();
homecalc=(CalcHome)ctx.lookup("calc/Calc");

Is this problem concerning Enhydra or JBoss?
What can I do to face this problem ?

Can anybody help me ?

Thanks for your help in advance.

Andreas Reifke




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to