• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI datasource lookup problem

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/'.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic