It could be possible that you are catching the Exception in you code but doing nothing 
with it.

-----Original Message-----
From: Java Techie [mailto:[EMAIL PROTECTED]
Sent: 12 August 2004 23:08
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: ClassNotFoundException: OracleDriver


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]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to