This is a ClassLoader problem.
The classes loaded by the defferent classloaders
can't be cast, even if the classes are the same type.
To avoid this problem, the stub and the remote interface classes
must be loaded by System ClassLoader. So, you should put
these classes in the classpath of your Servlet Engine.

From: akashmaheshwari <[EMAIL PROTECTED]>
Subject: Problem in RMIClient
Date: Mon, 23 Aug 1999 21:14:18 +0530

> Hi all,
>    i am using my servlets as RMI Client.
>    now i am getting this result on browser
>
>   java.lang.ClassCastException: ProvisioningEngine_Stub
>
> any body will tell me why i am getting
>   this exception
> thanx in advance
> akash

---
Yoko Kamei Harada

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to