tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: call ejb from other application
Date Sun, 01 Apr 2012 07:55:40 GMT
Did you try putting it in common classloader?

- Romain

Le 1 avr. 2012 00:09, "slawek" <s.wojciechowski@gmail.com> a écrit :

> Hello,
> I have deployed on this same tomee two applications. First contains ejb and
> domain class. Ejb class has method return ArrayList of domain class:
> public ArrayList<DomainClasss> getPerson
> ..
> ..
> ..
> Second application is a local client ejb, with has class that call method
> getPerson from Ejb class in first application. To do it second application
> has to have set in path Domain class. I do it by set path to domain class
> in
> catatlina.properties shared.loader section. Unfortunetly, when I call ejb
> from client i got error:
> javax.ejb.EJBException: java.lang.ClassCastException:
> my.packed.TestBean$LocalBeanProxy cannot be cast to my.packed.TestBean
> I have try add interface to Ejb, but then I got error:
> javax.ejb.EJBException: java.lang.ClassCastException: $Proxy69 cannot be
> cast to my.packed.TestBean
>
> What should i do to correct recive domain?
>
> Best regards
> sw
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/call-ejb-from-other-application-tp4522310p4522310.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message