wood burning stoves 2.0*
The moose likes JDBC and the fly likes JNDI datasource lookup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JNDI datasource lookup problem " Watch "JNDI datasource lookup problem " New topic
Author

JNDI datasource lookup problem

Bill Fences
Greenhorn

Joined: Oct 23, 2004
Posts: 9
Can some one help me I'm having trouble with WL JNDI look up returning
a warning when i deploy

"Did not find resource-ref in web.xml matching MySQLactivate."

I have create the datasource in WL console as follows..

Name: MySQLactivate
JNDI Name repaidactivate

And I get a naming exception as follows when I run the code....

javax.naming.NameNotFoundException: While trying to lookup 'jdbc.prepaidactivate' didn't find subcontext 'jdbc' Resolved ; remaining name 'jdbc/prepaidactivate'










If some one can see where I am going wrong would be a big help
Mattias Arthursson
Ranch Hand

Joined: Jul 26, 2004
Posts: 90
In WL, datasources are bound directly in the root of the jndi tree (that's the default case anyway), so in your deployment descriptor you should specify the jndi name of the datasource without 'jdbc/'.


Admit nothing. Blame everyone. Be bitter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI datasource lookup problem
 
Similar Threads
JBOSS connection pooling
JNDI lookup problem, this is a nightmare....
'jdbc' in JNDI name causes problem on Tomcat 6
Could not perform loook up operation in JBoss..need urgent help
JNDI DataSource lookup problem