This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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

 
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
 
Sheriff
Posts: 10445
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
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!