I have the "Resource" within the "Context" and I no longer get errors
when I start up TomCat...but I still get the error:
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context at
org.apache.naming.NamingContext.lookup(NamingContext.java:811)

<Context className="org.apache.catalina.core.StandardContext"
cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true" crossContext="false" debug="0" docBase="C:/Program
Files/Apache Group/Tomcat 4.1/webapps/vickie.war"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/vickie" privileged="false" reloadable="false"
swallowOutput="false" useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
    <Resource name="jdbc/DB2" type="javax.sql.DataSource"
scope="Shareable"/>   
<ResourceParams name="jdbc/DB2">
     <parameter>
       <name>factory</name>
       <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
      </parameter>
      <parameter>
        <name>maxWait</name>
        <value>5000</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>4</value>
      </parameter>
      <parameter>
        <name>username</name>
        <value>myuserid</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>mypass</value>
      </parameter>
      <parameter>
        <name>url</name>
        <value>jdbc:db2:DB2</value>
      </parameter>
      <parameter>
        <name>driverClassName</name>
        <value>COM.ibm.db2.jdbc.app.DB2Driver</value>
      </parameter>
      <parameter>
        <name>maxIdle</name>
        <value>2</value>
      </parameter>
    </ResourceParams>  
<ResourceLink global="jdbc/DB2" name="DB2"/>   
</Context>

I think it's not able to use the DB2Client installed on my workstation
to connect.  Is there anyway to verify the connection with Tomcat
outside of a program?

Thanks,

Vickie


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to