Hi all,
i am trying to impelement connection pooling with sql server 2005

this is my configueration in server.xml
Java Code:
<Context path="/basicjsp" docBase="basicjsp" debug= "99" reloadable="true" crossContext="true" verbosity="DEBUG">
 <Resource name="jdbc/TestDB" auth="Container" type="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"/>
 <ResourceParams name="jdbc/TestDB">
       
        <parameter>
	    <name>factory</name>
               <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory</value>

            <name>maxWait</name>
            <value>100</value>
        </parameter>
        <parameter>
            <name>maxActive</name>
            <value>100</value>
        </parameter>
        <parameter>
            <name>username</name>
            <value>ts_test</value>
        </parameter>
        <parameter>
            <name>password</name>
            <value>ts_test</value>
        </parameter>
        <parameter>
	<name>url</name>
	<value>jdbc:sqlserver://localhost:1433/timesheet_test?autoReconnect=true</value>
         </parameter>   
        <parameter>
            <name>driverClassName</name>
            <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</value>
        </parameter>
        <parameter>
            <name>maxIdle</name>
            <value>2</value>
        </parameter>
        <parameter>
            
        </parameter>
    </ResourceParams>

</Context>
configueration in web.xml

Java Code:
<resource-ref>
      <description> DB Connection Pooling</description>
      <res-ref-name> jdbc/TestDB</res-ref-name>
      <res-type> com.microsoft.jdbcx.sqlserver.SQLServerDataSource</res-type>
      <res-auth> Container</res-auth>
  </resource-ref>
configueration in context.xml

Java Code:
<Context path = "/ basicjsp" docBase = "basicjsp" debug = "5"
reloadable = "true" crossContext = "true">
<ResourceLink name = "jdbc / TestDB" global = "jdbc / TestDB"
type = "javax.sql.DataSource" />
</ Context>
code to connect is
Java Code:
class DBConnection {
	Connection con=null;
	DataSource ds = null;

    public Connection openConnection()  {
try {
    		Context context = new InitialContext();
    	      Context envCtx = (Context) context.lookup("java:comp/env");
    	      ds =  (DataSource)envCtx.lookup("jdbc/TestDB");
con = ds.getConnection();
            if(con!=null)
            	System.out.println("connection done");
} 
	catch(Exception ex)
        {
            System.out.println("Exception raised creating connection" + ex);
        }
	return con;
 }
but i am getting the following error
"Exception raised creating connectionjavax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial"

plz help me out.....any suggestion will be highly appreciated