2010/1/21 danielitob <gbatt...@aliceposta.it>: > > 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 on. 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 server.xml. Most probably you are facing #2. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org