• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic