Re: making all pages to fo index.jsp

2014-07-31 Thread André Warnier
Aryeh Friedman wrote: I want to make it so every page that does not have a actual .jsp file gets sent back index.jsp. I am doing it with error-page but that also sends a 404 I want zero clue they landed on a non-existent page There are certainly ways to achieve what you describe above. But I

Re: How to use Jasper class?

2014-07-31 Thread Daniel Mikusa
On Wed, Jul 30, 2014 at 10:36 PM, Aaron Lewis the.warl0ck.1...@gmail.com wrote: Thanks guys. I copied all jars from tomcat 7.0.55 binary, libs bin/*.jar to 'lib' folder, then I start winstone like this: % java -jar winstone-0.9.10.jar --useJasper --commonLibFolder=lib/ --webroot=webroot/

overriding all other context.xml settings in conf/context.xml

2014-07-31 Thread Brandon Metcalf
I know that the load order of context settings is $CATALINA_BASE/conf/context.xml $CATALINA_BASE/conf/[enginename]/[hostname]/[app].xml -- Brandon Metcalf | Technical Operations brandon.metc...@logicmonitor.com M: 1-512-917-8198 http://www.logicmonitor.com *Cloud-based performance monitoring*

Re: overriding all other context.xml settings in conf/context.xml

2014-07-31 Thread Brandon Metcalf
Sorry, I hit send a little too soon I'm trying to figure out a way where $CATALINA_BASE/conf/context.xml takes precedence over any other context settings. I thought the override option would do this, but it doesn't seem to behave the way I think it should. I'm using tomcat 5.5.28. Thanks. On

Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
Tomcat 7 Is there a way via a Java servlet to get the number of tomcat connections? Thanks, Lance Campbellhttp://illinois.edu/person/lance Software Architect Web Services at Public Affairs 217-333-0382 [University of Illinois at Urbana-Champaign logo]http://illinois.edu/

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Mark Thomas
On 31/07/2014 17:06, Campbell, Lance wrote: Tomcat 7 Is there a way via a Java servlet to get the number of tomcat connections? Connections from what to what in what state? With or without non-Servlet API calls? Mark - To

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
Good question. I would like to have a servlet that would return to me the number of tomcat HTTP connections. I know you can do this via a Linux console command. But I would prefer to do it via a servlet. Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal Sapir
Write a simple ServletFilter On Jul 31, 2014 9:33 AM, Campbell, Lance la...@illinois.edu wrote: Good question. I would like to have a servlet that would return to me the number of tomcat HTTP connections. I know you can do this via a Linux console command. But I would prefer to do it via a

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
Could you elaborate a little? How do you actually get the number of HTTP connections? Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 -Original Message- From: Igal Sapir [mailto:i...@getrailo.org] Sent: Thursday, July 31, 2014 11:35 AM To:

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Mark Thomas
On 31/07/2014 17:56, Campbell, Lance wrote: Could you elaborate a little? How do you actually get the number of HTTP connections? You can't do this with a Filter. You can determine the number of active requests for an application but connection != active request and application != Tomcat

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal @ getRailo.org
well -- Mark surely knows much better than I do -- so take into account what he wrote, but I was already writing this so I decided to send anyway, and for most application it should work fine IMO: 1) you create a class that implements the Filter interface and maintains the count in an

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Caldarale, Charles R
From: Igal @ getRailo.org [mailto:i...@getrailo.org] Subject: Re: Programmatically retrieve number of tomcat connections 1) you create a class that implements the Filter interface and maintains the count in an AtomicLong object. 2) you increment the AtomicLong before the call to

Re: overriding all other context.xml settings in conf/context.xml

2014-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brandon, On 7/31/14, 11:57 AM, Brandon Metcalf wrote: Sorry, I hit send a little too soon I'm trying to figure out a way where $CATALINA_BASE/conf/context.xml takes precedence over any other context settings. I thought the override option

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal Sapir
Isn't Filter.doFilter() called once for each incoming http request? On Jul 31, 2014 10:24 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Igal @ getRailo.org [mailto:i...@getrailo.org] Subject: Re: Programmatically retrieve number of tomcat connections 1) you create a

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 7/31/14, 1:22 PM, Caldarale, Charles R wrote: From: Igal @ getRailo.org [mailto:i...@getrailo.org] Subject: Re: Programmatically retrieve number of tomcat connections 1) you create a class that implements the Filter interface and

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Caldarale, Charles R
From: Igal Sapir [mailto:i...@getrailo.org] Subject: RE: Programmatically retrieve number of tomcat connections Isn't Filter.doFilter() called once for each incoming http request? Yes, which is why it has nothing to do with the number of _connections_. - Chuck THIS COMMUNICATION MAY

Re: overriding all other context.xml settings in conf/context.xml

2014-07-31 Thread Brandon Metcalf
No doubt we are woefully behind, but hoping there is a solution to my question with the current version. On Thu, Jul 31, 2014 at 12:26 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brandon, On 7/31/14, 11:57 AM, Brandon

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread André Warnier
Caldarale, Charles R wrote: From: Igal Sapir [mailto:i...@getrailo.org] Subject: RE: Programmatically retrieve number of tomcat connections Isn't Filter.doFilter() called once for each incoming http request? Yes, which is why it has nothing to do with the number of _connections_. To

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal @ getRailo.org
André -- thank you for making this clear. On 7/31/2014 2:27 PM, André Warnier wrote: Caldarale, Charles R wrote: From: Igal Sapir Subject: RE: Programmatically retrieve number of tomcat connections Isn't Filter.doFilter() called once for each incoming http request? Yes, which is why it

NoSuchMethodError: org/apache/xml/utils/TreeWalker

2014-07-31 Thread Deme Carv
I am getting the error from subject when running the below code in Websphere in my RAD. It is very interesting that this code doesn't cause any error in Server. The server runs up Tomcat 6 but I must set the same code to run in Websphere. I have searched for hours in web but I didn't find nothing