tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: tomcat 4.1.31 problem
Date Fri, 04 Sep 2009 14:26:46 GMT
Hash: SHA1


On 9/3/2009 11:15 PM, jamez smith wrote:
> This is the exception when removing the <context> element from the
> server.xml:
> [ERROR] [Cannot create JDBC driver of class '' for connect URL
> 'null']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(
>     at
> org.apache.commons.dbcp.BasicDataSource.createDataSource(
>     at
> org.apache.commons.dbcp.BasicDataSource.getConnection(

Okay, now we're back to a simpler problem. I don't believe Tomcat 4.1.x
uses META-INF/context.xml files, which is a shame, because you can't
define context-specific <Resource> elements anywhere. It looks like
you're going to have to have your <Context> in server.xml no matter what.

So, either keep your webapp in C:\procurement (which you said works,
right?) or turn off autoDeply in your <Host>.

>>>>> If you need <Realm> or <Resource> elements inside your <Context>,
>>>>> you have two options:
>>>>> 1. Set autoDeploy="false" on your <Host>
> This is the error which is same as the JDBC driver error:

The error you posted is really the consequence of another error, not an
actual error in itself. Can you post the real error (probably in
localhost.log or [yourwebappname].log)?

>>>>> 2. Keep your <Context>'s docBase outside of your <Host>'s
>> I changed  <Context docBase="c:\\procurement".... The error is still the
> same.

I'm sorry... which error? There's a lot going on here.

>>>>> I agree with Chuck's and Mark's comments WRT JRE and Tomcat version.
> I am desperate now. Will try Tomcat 5 with JDK1.4 .

Note that your existing server.xml will me worthless if you upgrade.
Start with a fresh server.xml from the distro and merge-in any elements
that you actually need. Don't try to modify your old server.xml to work
in Tomcat 5.

Oh, and move your <Context> into META-INF/context.xml and simplify your
live greatly.

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message