Hi There!

I am encountering ClassCastException on attempting a
PortableRemoteObject.narrow() call from one of my utility class used by my
JavaBeans.

I am essentially looking up a EJB deployed in Weblogic Server.

I have tried placing weblogic.jar(which has the factory class -
weblogic.jndi.WLInitialContextFactory) and the utility.jar in each of the
following directories, but with no success:
* CATALINA_HOME/common/lib
* CATALINA_HOME/server/lib (though not recommended)
* CATALINA_HOME/lib
* WEB-INF/lib
* explicitly through catalina.bat's CLASSPATH
(For more info:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html)


I had the same problem in version 3.2.3 when I placed my jars in
WEB-INF/lib; BUT, things were working when I moved these to TOMCAT_HOME/lib.

Could someone share similar experiences in Tomcat 4.0?

One could reproduce the problem with these 3 steps:
1. jsp/servlet/javabean calls a utility.jar for JNDI lookup, say
Utility.lookup(servicename)
2. utility.jar uses weblogic.jar or any other jar for lookup through
Context.lookup()
3. jsp/servlet/javabean does a PortableRemoteObject.narrow() on the Object
returned by lookup()


Thanks in advance.
Aprameya



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to