Andreas Nauerz [https://community.jboss.org/people/NautilusIII] created the 
discussion

"Re: Calling an EJB from servlet"

To view the discussion, visit: https://community.jboss.org/message/772530#772530

--------------------------------------------------------------
Okay, if I do the lookup like this I can make it one step further:


HelloWorld hello = (HelloWorld) ctx
        .lookup("ejb:/MyEJBProject/HelloWorldBean!ejb.HelloWorld");



Now I get this error:



11:13:19,796 ERROR [stderr] (http--127.0.0.1-8080-1) 
javax.naming.NamingException: Could not load ejb proxy class ejb.HelloWorld
 [Root exception is java.lang.ClassNotFoundException: ejb.HelloWorld from 
[Module "deployment.ServletTest2.war:main" from Service Module Loader]]



The EJB is located in another project than the servlet is.
I have deployed both from within JBoss Dev Stuido via Run on server.

Anyone?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/772530#772530]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to