Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Injection of resource dependencies failed. No bean named 'Test' is defined  RSS feed

 
Carla Celiberti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
- Test2Client
- Test2Web

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.

Test2/Test.java


Test2Client/TestLocal.java


Test2Client/TestRemote.java


Test2Web/My_Controller.java


Test2Web/applicationContext.xml



Test2Web/spring-servlet.xml


Test2Web/web.xml


The errors that I'm getting are pasted here:
http://justpaste.it/gdcg
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Carla, welcome to CodeRanch!

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.
 
Carla Celiberti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!

I changed it and it works, thank you!



I'm using websphere 7.
The IDE is RAD 8.5
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!