tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanjeev/tcpl/IN%T...@teamcomputers.com
Subject Error : JDBC ODBC
Date Thu, 08 Nov 2001 06:10:02 GMT
hi,

 i am facing these following errors

if i using thin oracle client
SQL Excepiton is Cannot load JDBC driver class
'oracle.jdbc.driver.OracleDriver'
----------------------------------------code of server.xml
--------------------------------------------
<Context path="/PO" docBase="po" debug="0">
<Resource name="jdbc/PURC" auth="SERVLET"
                    type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/PURC">
            <parameter><name>user</name><value>scott</value></parameter>

<parameter><name>password</name><value>tiger</value></parameter>
            <parameter><name>driverClassName</name>
              <value>oracle.jdbc.driver.OracleDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:oracle:thin:
@192.10.15.68:1521:PURC</value></parameter>
          </ResourceParams>
</Context>
----------------------------------server.xml
---------------------------------------------------

if i using simple jdbc oracle client
SQL Excepiton is Cannot create JDBC driver of class
'sun.jdbc.odbc.JdbcOdbcDriver' for connect URL 'null'
----------------------------------------code of server.xml
--------------------------------------------
<Context path="/PO" docBase="po" debug="0">

      <Resource name="jdbc/PO" auth="SERVLET"
                    type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/PO">
            <parameter><name>user</name><value>scott</value></parameter>

<parameter><name>password</name><value>tiger</value></parameter>
            <parameter><name>driverClassName</name>
              <value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:odbc:PURC</value></parameter>
          </ResourceParams>
</Context>
----------------------------------server.xml
---------------------------------------------------
system configuration
server windows NT4.0
Tomcat 4.1
jdk1.4
oracle 8i

thanks in advance
regards
Sanjeev


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message