[jboss-user] [EJB3] - Re: Calling an EJB from servlet
Andreas Nauerz
do-not-reply at jboss.com
Fri Oct 26 05:37:10 EDT 2012
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121026/0a8cb20f/attachment.html
More information about the jboss-user
mailing list