Hi, Are you sure of your openejb-core scope?
- Romain Le 14 mars 2012 08:14, "slawek" <[email protected]> a écrit : > Hello, > In my learing I try to connect to examples together. First I have build > lookup-of-ejbs project and tested it - it works great. Next I prepered new > example project simple-webservice - it works fine to. But in this project I > added simpe method, where i call ejb: > public String zwrocTekstZEjb() > { > String tekst=""; > try > { > Context context = > EJBContainer.createEJBContainer().getContext(); > Friend friend = (Friend) > context.lookup("java:global/lookup-of-ejbs/RedBean"); > tekst="My friend " + friend.sayHello(); > } > catch (Exception e) > { > throw new EJBException(e); > } > return tekst; > } > > Unfortunetly it doesn't work. When I call ws method zwrocTekstZEjb, I got > error: > The bean encountered a non-application exception; nested exception is: > javax.ejb.EJBException: javax.ejb.EJBException: Provider error. No > provider > definition found while invoking public abstract java.lang.String > my_package.zwrocTekstZEjb() with params []. > > So I spend few hours and I haven't idea what is wrong. > > Best Regards > sw > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/ejb-from-ws-tp4470387p4470387.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
