Tomcat Connection Problem

2009-09-27 Thread Sharath Babu S S S
Hi When i checked my log file i found this error. java.sql.SQLException: Connection is closed at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.checkOpen(DelegatingConnection.java:291) at

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-09-27 Thread Mark Thomas
Elli Albek wrote: Hi, We have Tomcat behind a load balancer. The servlet API and tomcat libraries see the load balancer IP as the client IP. I tried to write a simple valve which will extract the IP from HTTP header X-Forwarded-For and continue the valve chain using this IP as the client

Re: Tomcat Connection Problem

2009-09-27 Thread Mark Thomas
Sharath Babu S S S wrote: Hi When i checked my log file i found this error. java.sql.SQLException: Connection is closed at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.checkOpen(DelegatingConnection.java:291) at

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-09-27 Thread Elli Albek
Thanks for the response. Is there any problem in fixing this method to actually set the variable (which is already in the class)? I think the set methods should actually set the values, so others can write such extensions without putting their code in the apache packages. Right now I guess the

Error opening zip file /usr/bin/build-classpath

2009-09-27 Thread Andreas Forstmayr
Hello! I wrote a Java/Spring application and it works on my local SLES 10 testing vm and all other test systems perfectly. If I deploy it on another SLES 10 SP2 (x86_64) server with Tomcat 5.0.28 and java-1_5_0-ibm-1.5.0_sr7 it also works at first view, but if I want to view some pages of the app

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread David Smith
Eric P wrote: Hi, (Tomcat newb alert) I've got a simple database servlet application that has a few model classes on the back end. I have the model classes pretty well genericized so that they could (almost) be utilized outside of Tomcat by another app, but they do utilize the Tomcat

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-09-27 Thread David Smith
Elli Albek wrote: Hi, We have Tomcat behind a load balancer. The servlet API and tomcat libraries see the load balancer IP as the client IP. I tried to write a simple valve which will extract the IP from HTTP header X-Forwarded-For and continue the valve chain using this IP as the client

Re: Error opening zip file /usr/bin/build-classpath

2009-09-27 Thread Pid
On 27/09/2009 13:51, Andreas Forstmayr wrote: Hello! I wrote a Java/Spring application and it works on my local SLES 10 testing vm and all other test systems perfectly. If I deploy it on another SLES 10 SP2 (x86_64) server with Tomcat 5.0.28 and java-1_5_0-ibm-1.5.0_sr7 it also works at first

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Shifman
Hi: This is what I do for testing. I made a class for creating a jndi directory and I create this in my main, then I can get a datasource from the jndi directory just like I do it when running tomcat. jndi.properties java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory

RE: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Martin Gainty
Mark have you been able to implement JNDI (standalone) in TC? i see craig's comment on implementing JNDI in org.apache.catalina.Container.java * libResources/b - JNDI directory context enabling access to static * resources, enabling custom linkages to existing server components when *

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Shifman
Martin Gainty wrote: Mark have you been able to implement JNDI (standalone) in TC? No, I never tried. i see craig's comment on implementing JNDI in org.apache.catalina.Container.java * libResources/b - JNDI directory context enabling access to static * resources, enabling custom

Creating a copy of existing webapp in tomcat

2009-09-27 Thread asuhail100
Hi, I have a webapplication deployed on tomcat 5.5.x. The application is in the webapps directory of tomcat. Lets call the deployed application a. A couple of days ago, copy/duplicate of a was created by someone under the webapps directory, lets call the duplicate copy b. Tomcat was restarted

RE: Tomcat Connection Problem

2009-09-27 Thread George Sexton
Good for you. We'd hate to see an error go unfound. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Sharath Babu S S S [mailto:sharath.b...@solix.com] Sent: Sunday, September 27, 2009 12:35 AM To: users@tomcat.apache.org

RE: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Martin Gainty
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html is a JNDI 'emulator' i heard chilisoft was implementing JNDI for Tomcat but EOL'ed when Glassfish came out I wonder if anyone can resurrect? thanks Martin __ Verzicht und

RE: Creating a copy of existing webapp in tomcat

2009-09-27 Thread Caldarale, Charles R
From: asuhail100 [mailto:mn...@hotmail.com] Subject: Creating a copy of existing webapp in tomcat Now I created a second duplicate of a and I named it c, and I restarted the tomcat but c doesn't seem to work. I get Error 404, the requested resource (/c/) is not available. And the Tomcat

Re: debugging model classes tied to Tomcat datasources

2009-09-27 Thread Mark Thomas
Martin Gainty wrote: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html is a JNDI 'emulator' Huh? Care to explain what you mean by that remark? i heard chilisoft was implementing JNDI for Tomcat but EOL'ed when Glassfish came out I wonder if anyone can resurrect? What

Re: Yet another swallowOutput question

2009-09-27 Thread Vinicius Carvalho
Hello Mark. We have removed from all hosts the swallowOutput and add it to the context section of each host. We have also added it to the conf/context.xml. Yet, the catalina.out keeps growing. We found that some apps, that are using System.out/System.err, have their output redirected to

Re: Yet another swallowOutput question

2009-09-27 Thread Mark Thomas
Vinicius Carvalho wrote: Hello Mark. We have removed from all hosts the swallowOutput and add it to the context section of each host. We have also added it to the conf/context.xml. Yet, the catalina.out keeps growing. We found that some apps, that are using System.out/System.err, have their