• Post Reply Bookmark Topic Watch Topic
  • New Topic

error performing resource injection on managed bean

 
audrys par
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, maybe anyone could help?




testBean:





.jsf


facesconfig


running on jboss server 5.1.0
building with maven, all the stuff is packed in .war container, maybe it should be .ear?

thanks
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It appears that you haven't configured your JNDI resources properly.
 
audrys par
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So how do I configure them properly? I've checked all the names like a 100 times, all seems to be right
thanks






JBOSS also says:
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNDI names (and their corresponding values) are DEFINED to the server, not in the application. The application REFERENCES these objects.
 
audrys par
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay, so how do I define them to the server, so I could use them?
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on which appserver you're using and what type of resource it is. It looks like you're using JBoss, so normally you'd define a JBoss datasource file.

Of course, I'm confused, since most of my datasource JNDI names are things like "jdbc/datasource1", not class-like names.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!