tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: tomcat seems not seeing context.xml
Date Thu, 21 Jan 2010 13:11:53 GMT
2010/1/21 danielitob <>:
> Hi guys,I've a absurd problem and I can't figure out....I've a debian server
> on which tomcat 5.5 is installed.I need to run a jsf application, in which I
> use pool of connection for db. Issue is that my application can't connect to
> db!In catalina log I seeorg.apache.tomcat.dbcp.dbcp.SQLNestedException:
> Cannot create PoolableConnectionFactory (Access denied for user
> 'root'@'localhost' (using password: YES))the issue is that in context.xml of
> my application (I use local context) user and password are different (i
> don't pass root user!).Is it possible tomcat is not able to read context.xml
> and so try to go with root user?Please help me, my application doesn't see
> db..

1. Check your spelling. If anything is spelled wrongly, it will be
skipped. The file is META-INF/context.xml (in lowercase). The root
element in the file is <Context> (with capital first letter) and so

2. The context.xml file is copied into
${CATALINA_BASE}/conf/Catalina/localhost/<yourappname>.xml  when your
application is deployed by Tomcat.
(Subdirectory names in conf/ are Engine and Host names and can be
different as well).

If that file exists, the contents of META-INF/context.xml will be
ignored  (under the premise that the file in /conf might have been
edited by the site administrators).

3. It is possible to disable processing of META-INF/context.xml files
on a site, using deployXML attribute on the <Host> element in

Most probably you are facing #2.

Best regards,
Konstantin Kolinko

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

View raw message