This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context" Watch "Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context" New topic
Author

Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context

nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
hi all,
am trying to deploy my web application (.war which has a servlet which connects to a db and fetches records and displays in jsp) file in SunOne web server V7 but i cant get past this error :


[29/Jun/2010:15:14:46] failure (24218): for host 146.171.59.144 trying to POST /BbaMigrationQueryTool/BBAMigrationQuery, service-j2ee reports: NamingExcep
tion caught: Errored while looking up datasource: PWC4216: Name myDB is not bound in this Context

my java code to lookup the jndi name :


i call the above method with "jdbc/myDB" and have created a JDBC recourse within the SunOne web server via the admin console.

my web.xml i have an entry for the resource as follows :



in my sun-web.xml i have an entry as follows :



server.xml has this entry in it :



what could be wrong ??

thanks in advance.
 
GeeCON Prague 2014
 
subject: Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context