Hi,
I have a Stateful session Bean which accesses a CMP 2.0 Bean via its local
interface in Weblogic 6.1 (SP 2). I get a class cast exception after the
following code in the session bean, when i try to get hold of the Local Home
interface of the CMP bean.
InitialContext initCtx = new InitialContext();
//cast to Home interface
CheckListEntityHome localHome =
(CheckListEntityHome)initCtx.lookup("CheckListEntity");
The error message is as follows:
java.lang.ClassCastException:
com.intrasoft.wfs.control.ejb.checklist.CheckListEntityBean_2qk0fd_LocalHome
Impl at
com.intrasoft.wfs.control.ejb.checklist.CheckListManagerBean.getCheckList(Ch
eckListManagerBean.java:79)
The class 'CheckListEntityBean_2qk0fd_LocalHomeImpl ' correcly implements
the CheckListEntityHome interface.
Does anyone know why this is happening? I thought that using the default
constructor for InitialContext and not using RMI narrowing, was ok for local
interfaces.
Thanks.
===========================================================================
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".