Hello all,
 
Let me first say that I am using Tomcat 4.1.30 and have an existing
application that is working properly.  I decided that I would like to
explore putting the context element for my web application in a
myWebapp/META-INF/context.xml file instead of in my server.xml file.  The
existing configuration currently works and defines both a dbcp connection
pool and a mail session.
 
After removing this context element from my server.xml file and placing it
into the context.xml file, my application no longer works.  What did I miss?
I am using the ant install and deploy tasks to deploy/install this simple
application.
 
I receive the following exception (keep in mind that my previous
configuration works and that my JDBC driver is in the common/lib dir):
 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getDriver(DriverManager.java:243)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:743)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
        at hibernateapp.DBTest.init(DBTest.java:24)
.
.
.
 
Regards,
 
Joshua
 
 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.

Reply via email to