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

[...]


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

Reply via email to