You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nandish A <na...@cgsmith.soft.net> on 2003/02/18 07:10:55 UTC
Very very urgent, tomcat 4.1.17, JDBC cannot load
Hi all,
I have a application and i created a war file using "jar -cf JSPCode.war *", and put it in the webapps folder. when i started the tomcat(4.1.17) the war was self extracted. in the server.xml i have the context as listed below
<Context path="\JSPCode" docBase="JSPCode" appBase="webapps" cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper" cookies="true"
crossContext="false" debug="0" privileged="true" reloadable="false"
swallowOutput="false" useNaming="true">
<Resource name="jdbc/CGS" auth="SERVLET"
type="javax.sql.DataSource"/>
<Resource name="jdbc/CGS" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/CGS">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>10000000</value>
</parameter>
<parameter>
<name>username</name>
<value>metauser</value>
</parameter>
<parameter>
<name>password</name>
<value>metauser</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>sun.jdbc.odbc.JdbcOdbcDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:odbc:metauser</value>
</parameter>
</ResourceParams>
</Context> i am on windows 95, when i enter the url "http://localhost:8080/JSPCode/MainPage.jsp" teh page open but says cannot load the JDBC Driver and never connects to the DB
Please help very urgent,
thanks to all
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org