Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

jdbc resource

  Asked By: Arnold    Date: May 12    Category: Java    Views: 469
  

I am using tomcat 6.0 , jdk 1.6 , on windows xp .
I want to using jdbc resource to connect to sql server 2000 database . i have created a jdbc resource at application context (META-INF/context.xml) , and reference to it at web.xml file .
when i want to use this resource such this at servlet :
InitialContext ic = new InitialContext();
Datasource ds = (DataSource) ic.lookup("java:comp/env/jdbc/myresourcename");
there is no problem .
but when i want to using this resource at JSTL sql tags <sql:query ... Or java persistence JTA datasource , application throws javax.naming Exception , (No name bound to jdbc ).
what is the problem , is missing any jar file ?
my question exactly is :
For declaring jdbc resource in tomcat what are minimal jars?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on jdbc resource Or get search suggestion and latest updates.




Tagged: