tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert F. Hall" <rfh...@berkeley.edu>
Subject Re: ClassNotFoundException: OracleDriver
Date Thu, 12 Aug 2004 21:17:38 GMT
Howdy,

You need ojdbc14.jar in your CLASSPATH.

-Robert

Java Techie wrote:

>Hi,
>in my struts-config:
>im using
>
><data-sources>
><data-source
>type="org.apache.commons.dbcp.BasicDataSource"
>key="UserDB">
>
><set-property property="driverClassName"
>value="oracle.jdbc.driver.OracleDriver"/>
><set-property property="url"
>value="jdbc:oracle:thin:@myPC:1521:newDB"/>
>
><set-property property="username" value="user1"/>
><set-property property="password" value="pass1"/>
>
></data-source>
></data-sources>
>----------
>
>The following error occurs:
> 27:57[ERROR]
>27:57org.apache.commons.dbcp.SQLNestedException:
>Cannot load JDBC
>driver class 'oracle.jdbc.driver.OracleDriver', cause:
>java.lang.ClassNotFoundException:
>oracle.jdbc.driver.OracleDriver
>      at
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>der.java:1340)
>      at
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>der.java:1189)
>      at
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>      at java.lang.Class.forName0(Native Method)
>      at java.lang.Class.forName(Class.java:140)
>------
>
>I have added the zip
>file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
>classpath; what else do i need to give.
>
>Thanks.
>
>
>		
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
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