Mahmood Shahzad wrote:
>
> I am trying to access an object reference placed in servlet context by another
> servlet on Oracle Application Server 4.0.8.1. Problem is that when the second
> servlet tries to access the required object from servlet context,
> TypeCastException is generated. Please guide, if someone have experienced such a
> problem on Oracle Application Server 4.0.8.1.
>

 You might get better answers asking this question on
an Oracle-specific mailing list.

 I'm not familiar with the Oracle product specifically,
but a similiar problem can happen with some servlet
containers when different class loaders are used to load
different servlets and their associated non-servlet classes.

 There was a question about this on the list recently,
you might check the archives using the keywords "class
cast exception". With some servlet containers it's possible
to put shared classes in a common area, but the details
are container-specific.


-cks

___________________________________________________________________________
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