tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <>
Subject RE: jdbc via ResourceLink in context.xml not working in 5.5.4
Date Tue, 30 Nov 2004 09:12:39 GMT
Hi Jeff,

If everything is setup the exact way it was ni 5.0.28 that will be your problem. There is
a slightly new format for how to define your datasources that looks like this.

  <Resource name="jdbc/EmployeeDB" auth="Container"
            type="javax.sql.DataSource" username="dbusername" password="dbpassword"
            driverClassName="org.hsql.jdbcDriver" url="jdbc:HypersonicSQL:database"
            maxActive="8" maxIdle="4"/>

If as you say this is in global resources, then then in your webapp.xml file in conf/Catalina/localhost
you should have your ResourceLink pointed at it.

Don't forget to check out the manual for 5.5 at

All the best, Allistair.

> -----Original Message-----
> From: Jeff Ousley []
> Sent: 29 November 2004 23:09
> To:
> Subject: jdbc via ResourceLink in context.xml not working in 5.5.4
> Hello,
> I am moving from tomcat 5.0.28 to 5.5.4 and I'm having trouble getting
> my jdbc driver working in the new tomcat. I have a Resource set up
> under GlobalNamingResources in server.xml, just as I did in 5.0.28. I
> also have a corresponding conext xml file (named the same as my test
> app - jeff.xml) inside conf/Catalina/localhost which has a
> ResourceLink to the Resource. I've copied the jdbc .jar files to
> common/lib. As far as I can tell, everything is setup the exact same
> way it was in 5.0.28 yet I get this error when I try to access my test
> page:
> javax.servlet.ServletException: Unable to get connection, DataSource
> invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
> create JDBC driver of class '' for connect URL 'null'"
> org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
> n(
> Can anyone think of what I'm missing or what I screwed up? It works
> just fine under 5.0.28. My next step is to rename my 5.0.28 install
> and set it up again from scratch to make sure I'm not missing
> something in my setup steps.
> Help!!!
> thanks,
> -jeff
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

QAS Ltd.
Developers of QuickAddress Software
<a href=""></a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474

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

View raw message