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?