aspose file tools
The moose likes JSF and the fly likes error performing resource injection on managed bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "error performing resource injection on managed bean" Watch "error performing resource injection on managed bean" New topic
Author

error performing resource injection on managed bean

audrys par
Greenhorn

Joined: Mar 29, 2010
Posts: 3
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7



It appears that you haven't configured your JNDI resources properly.


Customer surveys are for companies who didn't pay proper attention to begin with.
audrys par
Greenhorn

Joined: Mar 29, 2010
Posts: 3
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

JNDI names (and their corresponding values) are DEFINED to the server, not in the application. The application REFERENCES these objects.
audrys par
Greenhorn

Joined: Mar 29, 2010
Posts: 3
okay, so how do I define them to the server, so I could use them?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: error performing resource injection on managed bean
 
Similar Threads
Injection exception, session bean not bound
Session factory Error
Session bean not bound
RuntimeException when trying to deploy application using jboss
orielly ejb3 book, @RemoteBinding problem