Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic