Hello everybody! I like your forum, I solved lots of problems thanks to you
Now I'm getting little nervous because I'm not understanding where are my mistakes.
I have tree projects:
Test2 and Test2Client are in one EAR and Test2Web in another EAR.
Test2 has a Session Bean, Test2Client has the interfaces (Local and Remote) related to the bean, and Test2Web is the web project implemented with the spring-mvc technology.
It looks like you are using an incorrect jndi-name here:
The Java EE spec mandates the EJB to be bound to certain specific JNDI names and this is not one of those forms. Which application server are you using? Each application server has a way to find out what the JNDI names of the deployed EJBs are. I think once you find that out, you can fix this by changing the jndi-name attribute value in that code snippet to the correct one.