Since all EJB JARs (or directories) are loaded in separate
ClassLoaders, if an EJB has an EJB reference you must either deploy the
beans together (in the same JAR/directory) or put the home and remote
interfaces of the referenced bean in the JAR/directory of the referencing
bean.

Aaron

On Wed, 27 Sep 2000, Rolando Rivera wrote:
> Ole,  
>        Thanks for the advise, the error comes when the session bean tries to access 
>the home interface of an entity bean that is not on the same directory the real 
>exception is class not found. Which raise my other question... Do you need to put 
>your bean.jar files on the lib/ext directory in order for jboss to load the class?
> 
>    -thanks
> 
>  Rolando
> 
>      
> ---------- Original Message ----------------------------------
> From: Ole Husgaard <[EMAIL PROTECTED]>
> Reply-To: "jBoss" <[EMAIL PROTECTED]>
> Date: Wed, 27 Sep 2000 22:47:57 +0200
> 
> >Hi,
> >
> >Looks like your bean ejbCreate() method is throwing
> >an application exception (possibly a RemoteException).
> >Try adding a try-catch clause to your ejbCreate()
> >method to find out what is thrown.
> >
> >
> >Best Regards,
> >
> >Ole Husgaard.
> >
> >
> >Rolando Rivera wrote:
> >> 
> >> Hello,
> >> 
> >>       I just created an Stateful Session Bean and when the client is attempting 
>to call the home.create() method I get the following error:
> >> 
> >> javax.ejb.CreateException: Create failed:java.lang.reflect.InvocationTargetExcep
> >> tion
> >>         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
> >> n Source)
> >>         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
> >>         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
> >>         at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom
> >> e(Unknown Source)
> >>         at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java
> >> :221)
> >>         at $Proxy0.create(Unknown Source)
> >>         at com.estore.ecart.Client.main(Client.java:34)
> >> 
> >> while on the server side I don't have any aparent error:
> >> 
> >> [Default] JRMPCI:invokeHome create
> >> [Default] Tx is null
> >> [ShopingCart] TX_REQUIRED for create
> >> [ShopingCart] begin tx
> >> [ShopingCart] SSC:invokeHome:mi is create map is createHome
> >> [ShopingCart] Just Created!
> >> [ShopingCart] null
> >> [ShopingCart] commit tx 1
> >> 
> >>   Is there something that I'm missing?
> >> 
> >>   -Thanks
> >> Rolando Rivera
> >> 
> >> --
> >> 
> >> Rolando Rivera
> >> CYMSoft Chief Architect
> >> 
> >> --
> >> 
> >> --
> >> --------------------------------------------------------------
> >> To subscribe:        [EMAIL PROTECTED]
> >> To unsubscribe:      [EMAIL PROTECTED]
> >> Problems?:           [EMAIL PROTECTED]
> >
> >
> >--
> >--------------------------------------------------------------
> >To subscribe:        [EMAIL PROTECTED]
> >To unsubscribe:      [EMAIL PROTECTED]
> >Problems?:           [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



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

Reply via email to