tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihamina Rakotomandimby <miham...@lab.vectoris.fr>
Subject tomcat only query localhost database
Date Tue, 03 Feb 2009 04:25:47 GMT
Hi,
A developper gave me a .war webapp.
When deploying it, it creates an xml file:
/etc/tomcat6/Catalina/localhost/webappName.xml
which is a copy of the one in
/var/lib/tomcat6/webapps/webappName/META-INF/context.xml

Then context.xml file contains the JDBC/MySQL host,login,pass
where host is NOT localhost

But the tomcat insist to connect to localhost.

after deployment, if I change (after stopping RMI & tomcat)
the content of
/etc/tomcat6/Catalina/localhost/webappName.xml
to another host (then start RMI & tomcat) tomcat still use localhost as 
database host.

It's an Ubuntu tomcat6 packaged install.

Any help?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message