David, Thanks. Actually i had classes102.zip and nls_charset10.zip. i renamed them to classes12.jar and nls_charset12.zip and the error was gone.[is this ok..] but the values are still not inserted in the DB.[no error].. how is this possible.. do i need to have the actual classes12 and the charset.. plz advice.. --- David Short <[EMAIL PROTECTED]> wrote:
> Do you have the Oracle classes .jar (classes12.jar) > loaded in your > Tomcat\common\lib directory. Actually the file, as > it comes from Oracle, is > a .zip file (classes12.zip). Just rename it. It > should reside in your > C:\OraHome\jdbc\lib directory. Move the > nls_charset12.zip file over as > well. > > -----Original Message----- > From: Java Techie [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 12, 2004 2:13 PM > To: [EMAIL PROTECTED] > Subject: ClassNotFoundException: OracleDriver > > > 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: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]