It appears that you haven't configured your JNDI resources properly.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
JNDI names (and their corresponding values) are DEFINED to the server, not in the application. The application REFERENCES these objects.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.