You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by danielitob <gb...@aliceposta.it> on 2010/01/21 11:48:00 UTC
tomcat seems not seeing context.xml
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..
--
View this message in context: http://old.nabble.com/tomcat-seems-not-seeing-context.xml-tp27255890p27255890.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat seems not seeing context.xml
Posted by danielitob <gb...@aliceposta.it>.
Thanks your help I solved! It was point 2!!!Thanks thanks
Konstantin Kolinko wrote:
>
> 2010/1/21 danielitob <gb...@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/tomcat-seems-not-seeing-context.xml-tp27255890p27259625.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat seems not seeing context.xml
Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/1/21 danielitob <gb...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org