Andreas,

The error message indicates that the java.sql.DriverManager cannot find a 
'suitable' driver, becasue no driver for the URL prefix 'jdbc:oracle' has been 
registered. I just had a look at your DataSource definition again, and it seem 
to me that the following property must be wrong:

driverClassName="oracle.jdbc.driver.OracleDriver"

clearly, the package name for the OracleDriver is wrong .. ;-).

Werner


On Wed, 15 Dec 2004 12:39:35 +0100, Andreas Vombach wrote:

>
>Hi Werner,
>
>I did exactly (I think) as you wrote but get the following exception:
>
>org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
>driver of class '' for connect URL 'null'
>        at 
>org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
>        at 
>org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>        at 
>org.exolab.castor.jdo.engine.DatabaseRegistry.createConnection(DatabaseRegistry.java:392)
>        at 
>org.exolab.castor.jdo.engine.TransactionContextImpl.getConnection(TransactionContextImpl.java:209)
>        at 
>org.exolab.castor.persist.TransactionContext.query(TransactionContext.java:718)
>        at 
>org.exolab.castor.jdo.engine.OQLQueryImpl.execute(OQLQueryImpl.java:508)
>        at 
>org.exolab.castor.jdo.engine.OQLQueryImpl.execute(OQLQueryImpl.java:459)
>        at 
>org.exolab.castor.jdo.engine.OQLQueryImpl.execute(OQLQueryImpl.java:451)
>..
>Caused by: java.sql.SQLException: No suitable driver
>        at java.sql.DriverManager.getDriver(DriverManager.java:243)
>        at 
>org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
>
>There must be something I'm doing wrong ...??? It seems to miss the 
>parameters for the connection.
>But If I start the tomcat Admin interface I see the datasource 
>configured correctly.
>The <resource-ref> is in the web.xml file and JNDI seems to work.
>
>many thanks anyway
>Andreas
>
>
>
>----------------------------------------------------------- 
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
>        unsubscribe castor-user
>



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to