Hello All,

I have a problem where a Datasource is configured in META-INF/context.xml and referenced in web.xml. If I install this webapp unpacked, everything works fine. However, if I try to run this webapp as a packed war, the datasource fails giving the exception:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

tomcat 5.5.17, excerpts from the context.xml and web.xml listed below.

Can anyone help me out w/ this?

Thanks!

-- john


web.xml:
....
   <resource-ref>
       <res-ref-name>jdbc/COUGAR</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
   </resource-ref>
...

context.xml
...
<Resource name="jdbc/COUGAR"
         type="javax.sql.DataSource"
         auth="Container"
         username="myuser"
         password="mypassword"
         driverClassName="oracle.jdbc.OracleDriver"
         url="jdbc:oracle:thin:@localhost:1521:ORACLE"
         maxActive="8"
         maxIdle="4"/>
...



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to