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

Re: tomcat only query localhost database

2009-02-04 Thread Gregor Schneider
On Wed, Feb 4, 2009 at 8:28 AM, Mihamina Rakotomandimby (R12y) 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 (apt, yast etc.), it'

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 reading

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.

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 i

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

Re: tomcat only query localhost database

2009-02-03 Thread Dave Pawson
2009/2/3 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 >> >> > reloadable=&

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 > > reloadable="true" > docBase="norpassWeb&

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 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!) - please post the piece of code where the said webapp tries to create the database-connection.

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 try {

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

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