tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chandler <>
Subject context placement
Date Tue, 06 Feb 2007 20:03:20 GMT
I am trying to use tomcat 5.5 for the first time - having just moved 
from tomcat5.

I am getting symptoms (I think) of my JDNI resource having not been set 
up properly

In particular, I have NO contexts in my $CATALINA_HOME/conf/server.xml, 
since I want to bring these in in my webapps .war file.

So in the .war file for my app I have a META-INF/context.xml file with 
the following in (apart from the password which I have changed)

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="usermgr" path="/usermgr">
	<Resource name ="jdbc/usermgr" auth="Container" 
	username="tomcat" password="x"
	maxActive="20" maxIdle="10" maxWait="-1" />

and my application attempts to connect to the JDNI resource


But when I run it, I get the following in the error message

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

I am interpreting this as the JDNI resource has not been recognised.

Do I have the right interpretation?
Have I misunderstood how tomcat can find the contexts?

Alan Chandler

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message