tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynaldo Rocha" <reyna...@aleph.com.bo>
Subject Re: ClassNotFoundException: OracleDriver
Date Fri, 13 Aug 2004 01:51:40 GMT

----- Original Message ----- 
From: "Robert F. Hall" <rfhall@berkeley.edu>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, August 12, 2004 5:17 PM
Subject: Re: ClassNotFoundException: OracleDriver


> 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


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