Re: cannot setup JNDI with MySQL

2005-10-06 Thread Andrés Glez .
The problem is not JDNI. The problem is you can't connect to MySQL. Probably it's you have to check your MySQL access permissions... Can you connect to MySQL using the same parameters with another tool like MySQL Control Center? - Original Message - From: "John Cherouvim" <[EMAIL PRO

Re: log4j log viewer for tomcat

2005-10-04 Thread Andrés Glez .
chainsaw - Original Message - From: "Leon Rosenberg" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, October 02, 2005 1:17 PM Subject: Re: log4j log viewer for tomcat lf5 regards Leon On 10/2/05, matador <[EMAIL PROTECTED]> wrote: win200x tomcat 5.5.9 jdk 1.5.x log4j 1.2

Re: ClassCastException while sharing objects accross applications

2005-10-04 Thread Andrés Glez .
What about using JNDI to share objects between webapps? I think that: init(){ ... String context = "java:comp/env/"; InitialContext ic = new InitialContext(); ClassX c = (ClassX) ic.lookup(sContexto); ... } should return the same object to different servlets/webapps, if you define the jndi-

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Andrés Glez .
Use jsvc. - Original Message - From: "NoKideen" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 27, 2005 6:13 PM Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 I'd

Context at Host Level

2005-06-02 Thread Andrés Glez.
Hi If i define a jndi resource at the host level, how can i know when tomcat is being stopped to "finalize" that resource? I mean, in a webapp context level, i can define a ServletContextListener so i can get the event "ContextDestroyed" and close, say, some opened files. I've been searchin

Re: Defining DBCP resources in web.xml?

2005-04-26 Thread Andrés Glez.
Do it better in the web app. META-INF/context.xml - Original Message - From: "Josh McDonald" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Tuesday, April 26, 2005 2:37 PM Subject: Defining DBCP resources in web.xml? > The heading says it all - can it be done? If so, how do I go