Re: tomcat only query localhost database

2009-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mihamina, Mihamina Rakotomandimby (R12y) wrote: catch(Exception e) { try { Class.forName(org.gjt.mm.mysql.Driver); } catch (ClassNotFoundException e1)

Re: tomcat only query localhost database

2009-02-04 Thread Gregor Schneider
On Wed, Feb 4, 2009 at 8:28 AM, Mihamina Rakotomandimby (R12y) miham...@lab.vectoris.fr wrote: So, my deduction is the Linux tomcat6 has a setting that avoid reading Catalina/localhost/webappName.xml can you specify the Linux-distribution / version? In case you are using package-distribution

Re: tomcat only query localhost database

2009-02-03 Thread Gregor Schneider
Sorry, but you're providing too few informations. - please post the file /etc/tomcat6/Catalina/localhost/webappName.xml (masquerade the user-id / password!) - please post the piece of code where the said webapp tries to create the database-connection. should looke similar to code

Re: tomcat only query localhost database

2009-02-03 Thread Mihamina Rakotomandimby (R12y)
Mihamina Rakotomandimby (R12y) wrote: DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); There, I see some hardcoded localhost. Might it be the nasty evil code? -- Chef de

RE: tomcat only query localhost database

2009-02-03 Thread Caldarale, Charles R
From: Mihamina Rakotomandimby (R12y) [mailto:miham...@lab.vectoris.fr] Subject: Re: tomcat only query localhost database /etc/tomcat6/Catalina/localhost/webappName.xml ?xml version=1.0 encoding=UTF-8? Context path=/norpassWeb reloadable=true docBase

Re: tomcat only query localhost database

2009-02-03 Thread Dave Pawson
2009/2/3 Caldarale, Charles R chuck.caldar...@unisys.com: From: Mihamina Rakotomandimby (R12y) [mailto:miham...@lab.vectoris.fr] Subject: Re: tomcat only query localhost database /etc/tomcat6/Catalina/localhost/webappName.xml ?xml version=1.0 encoding=UTF-8? Context path=/norpassWeb

Re: tomcat only query localhost database

2009-02-03 Thread Mihamina Rakotomandimby (R12y)
Mihamina Rakotomandimby (R12y) wrote: Mihamina Rakotomandimby (R12y) wrote: DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); There, I see some hardcoded localhost. Might it be

Re: tomcat only query localhost database

2009-02-03 Thread Mihamina Rakotomandimby (R12y)
Mihamina Rakotomandimby (R12y) wrote: DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); There, I see some hardcoded localhost. Might it be the nasty evil code? Nope, it's in a

RE: tomcat only query localhost database

2009-02-03 Thread Caldarale, Charles R
From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: tomcat only query localhost database What are(or where can I find them) the rules on loading an app into localhost | webapps or ROOT? In the Tomcat docs: http://tomcat.apache.org/tomcat-6.0-doc/config/index.html Note that you

Re: tomcat only query localhost database

2009-02-03 Thread Mihamina Rakotomandimby (R12y)
Gregor Schneider wrote: Sorry, but you're providing too few informations. - please post the file /etc/tomcat6/Catalina/localhost/webappName.xml (masquerade the user-id / password!) ?xml version=1.0 encoding=UTF-8? Context path=/norpassWeb reloadable=true

Re: tomcat only query localhost database

2009-02-03 Thread Mihamina Rakotomandimby (R12y)
After further investigations: If I install a tomcat6 windows binary, and edit the Catalina/localhost/webappName.xml file in order to use a different database host, it's OK: the Windows tomcat6 go and use the other database. So, my deduction is the Linux tomcat6 has a setting that avoid

tomcat only query localhost database

2009-02-02 Thread Mihamina Rakotomandimby
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

Re: tomcat only query localhost database

2009-02-02 Thread Mihamina Rakotomandimby (R12y)
Mihamina Rakotomandimby wrote: Any help? I suspect there is a system-wide configuration that tells not to consider the webapp-specific configuration, but I dont find where... -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby