It is not finding the class com.titan.cabin.CabinHome which is the home 
interface to a Cabin EJB, deployed along with a TravelAgent EJB.  It is when 
the TravelAgent EJB tries to reference a Cabin EJB that the error occurs.  I 
am trying to get the examples from Enterprise JavaBeans, 2nd ed., by Richard 
Monson-Haefel to work.

ekw

>maybe there is a jar missing in your server - classpath.
>which ClassDefinition is not found? (just look at the exception >message)
>
>gerolf.
>
>Enrique Wallace wrote:
>>
>>I am having problems obtaining a reference to an EJB within another EJB
>>bean.  This code snippet,
>>
>>javax.naming.Context jndiContext = getInitialContext();
>>Object obj = jndiContext.lookup("CabinBean");
>>CabinHome home = (CabinHome) javax.rmi.PortableRemoteObject.narrow
>>(obj, CabinHome.class)
>>
>>works fine when used in a java client program, but when used within 
>>another
>>EJB, I get this exception when the narrow() function executes:
>>java.lang.ClassCastException: java.lang.NoClassDefFoundError
>
>[...]



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to