Se Hee -

You should narrow() for all EJB downcasting, and should not rely on
language casting. This is required in EJB1.1 - mainly for IIOP I think.

I would have expected a more meaningful stack trace than this. 2 things
you might try:

1. Check the type of the object before you cast it. I know, it's
obvious, but sometimes you think you are getting a particular type when
in fact you aren't.

2. Weblogic installs a separate classloader to load EJB components - I
think this can cause problems. Make sure you aren't getting different
versions of the class in the classpath and the EJB jar. In fact, try to
avoid having your beans in the weblogic classpath - restrict them to
dynamic loading in the weblogic.properties.

regards,

paul.


Se Hee Lee wrote:
>
> I am having a bit of difficulty in using the
> PortableRemoteObject.narrow(obj, class) at Servlet init()... If I cast it to
> EJBHome like below, it works, but it doesn't work if I use the narrow()
> method.
>



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to