JBoss Community

Re: Calling an EJB from servlet

created by Andreas Nauerz in EJB3 - View the full discussion

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

Start a new discussion in EJB3 at Community