• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
nikil shar
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic