| 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
|
|
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
|
|
|
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
|
|
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.
|
 |
 |
|
|
subject: error performing resource injection on managed bean
|
|
|