Re: PropertyNotFoundException does not work with custom error in web.xml

2014-01-14 Thread Tomcat Random
: SHA256 > > Alec, > > On 1/9/14, 2:28 PM, Tomcat Random wrote: > > I have a custom error servlet set up in my webapps web.xml file > > like so: > > > > > > java.lang.RuntimeException > > /runtimeExceptionHandler > > > > In JSTL if a proper

New connections in a pool

2014-01-14 Thread Tomcat Random
In an earlier thread I asked about losing pooled connections after a certain amount of time.

PropertyNotFoundException does not work with custom error in web.xml

2014-01-09 Thread Tomcat Random
I have a custom error servlet set up in my webapps web.xml file like so: java.lang.RuntimeException /runtimeExceptionHandler In JSTL if a property is spelled incorrectly or doesn't exist, the PropertyNotFoundException will not trigger the error servlet, even though PNFEs extend

Re: Logging makes a grown man cry

2013-12-23 Thread Tomcat Random
Sorry if resurrecting the dead is frowned upon here but I thought I would just add my resolve to this. Honestly, after writing a lot of code otherwise, logging was probably the most frustrating. Tomcat 7.0.42, RHEL 6 1. SL4FJ with Logback works beautifully. 2. I have custom error pages in web.xm

Re: What if my database is unavailable at startup?

2013-12-23 Thread Tomcat Random
Barry, You have testOnBorrow="true" without a validation query. That means the line is useless. Or as the docs say:* NOTE - for a true value to have any effect, the validationQuery parameter must be set to a non-null string* Best, Alec On Mon, Dec 16, 2013 at 10:07 AM, Propes, Barry L wrote: >

Re: Expire Sesssion

2013-12-05 Thread Tomcat Random
ommend you just change the web.xml. If you want all your webapps to have an expiration of 480, then change it in $CATALINA_HOME/conf, otherwise do it in each webapps web.xml file as needed. HTH, Alec On Thu, Dec 5, 2013 at 6:25 PM, Crystal Maramba wrote: > > > -Original Message---

Re: Tomcat 6 lib jars

2013-12-05 Thread Tomcat Random
Dan, +1. I can't imagine what kind of headaches are waiting around with all the symbolic links for the JARs. -Alec On Thu, Dec 5, 2013 at 10:03 AM, Daniel Mikusa wrote: > On Dec 5, 2013, at 9:42 AM, "Patel, Rakesh (Java)" < > rakesh.pat...@bskyb.com> wrote: > > > Hi, > > > > I've come across l

Re: Expire Sesssion

2013-12-05 Thread Tomcat Random
. -Alec On Thu, Dec 5, 2013 at 3:55 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > > On 12/5/13, 3:29 PM, Tomcat Random wrote: > > Crystal, > > > > At the risk of stat

Re: Expire Sesssion

2013-12-05 Thread Tomcat Random
Crystal, At the risk of stating the obvious, you can also override the default session timeout programmatically using HttpSession's method: setMaxInactiveInterval(int interval) -Alec On Thu, Dec 5, 2013 at 2:27 PM, Crystal Maramba wrote: > > > -Original Message- > From: Christopher Sc

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
2013 at 12:39 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > > On 12/4/13, 11:31 AM, Tomcat Random wrote: > > I'd argue that dealing with logging configuration is not newbi

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-04 Thread Tomcat Random
m just curious if they are absolutely necessary Cheers, Alec On Wed, Dec 4, 2013 at 1:01 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Dan, > > On 12/3/13, 12:32 PM, Daniel Mikusa wrote: > >

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
I'd argue that dealing with logging configuration is not newbie stuff. This is probably some of the most poorly implemented technology in the servlet container. On Tue, Dec 3, 2013 at 3:44 PM, Konstantin Kolinko wrote: > 2013/12/3 Tomcat Random : > > Environment is RHEL6, Tomcat

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
pp war file. > > We found issues with trying to have log4j in catalina/lib. > > That said, it would be nice to use log4j for tomcat, however we found > that the two configurations collided in our slf4j setup. > > Dale > > -----Original Message- > From: Tomcat Random [ma

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-03 Thread Tomcat Random
Thanks, that's good to know, especially about the validationInterval setting. The idea of not validating every single time seems more reasonable. -Alec On Tue, Dec 3, 2013 at 12:32 PM, Daniel Mikusa wrote: > On Dec 3, 2013, at 12:14 PM, Tomcat Random > wrote: > > >

Re: META-INF/context.xml & connection pool

2013-12-03 Thread Tomcat Random
The short answer is jars that are particular to a webapp can go in WEB-INF/lib, however since database access is fairly common, your jdbc jars and db specific driver jars should go above the webapp directory into $TOMCAT_HOME/lib. However, AFAIK some jars need to be in $TOMCAT_HOME/lib due to load

Logging makes a grown man cry

2013-12-03 Thread Tomcat Random
Environment is RHEL6, Tomcat 7.0.42. There is only one webapp. I'm trying to implement log4j as per the instructions here (skipping step 5): http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j Since I'm not using the Manager, I've removed the relevant logging lines from CATALINA_HOME

Re: Logging Best Practices on RHEL

2013-12-03 Thread Tomcat Random
Chris, thanks. That's good to know since I just implemented 1.2.17. On Mon, Dec 2, 2013 at 5:27 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > > On 12/2/13, 3:48 PM, Tomcat Random wro

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-03 Thread Tomcat Random
> On Dec 2, 2013 12:47 PM, "Tomcat Random" > wrote: > > > > > > Neven, thank you. > > > > > > It was right there in my.cnf: 'wait_timeout=600' > > > > > > > You're welcome :) > > > > I am curious wh

Re: Logging Best Practices on RHEL

2013-12-02 Thread Tomcat Random
Thanks Chris, Are you using log4j 1.x or 2.beta? On Fri, Nov 29, 2013 at 6:06 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > > On 11/27/13, 5:00 PM, Tomcat Random wrote: > > Thank

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-02 Thread Tomcat Random
kovic wrote: > >> > >> On Wed, Nov 27, 2013 at 5:32 PM, Tomcat Random > >> >>> wrote: > >> > >>> Everything behaves as expected, except after 600 seconds (10 > >>> minutes) all the pooled connections expire. As far as I can &

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-11-27 Thread Tomcat Random
I should add this is with MySQL 5.5.34 On Wed, Nov 27, 2013 at 5:32 PM, Tomcat Random wrote: > I have two instances of Tomcat 7.0.42, each on their own physical server > (RHEL6). There's nothing in front of them, I'm using IPTABLES to route 80 > to 8080. They're cl

Pooled Connections Lost After 10 Minutes (600 seconds)

2013-11-27 Thread Tomcat Random
I have two instances of Tomcat 7.0.42, each on their own physical server (RHEL6). There's nothing in front of them, I'm using IPTABLES to route 80 to 8080. They're clustered using the native Tomcat clustering. I'm using the non blocking NIO connector. Everything behaves as expected, except after 6

Re: Logging Best Practices on RHEL

2013-11-27 Thread Tomcat Random
to route other logging frameworks. If you are > using other libraries which use a different logging framework, you could > capture these logs via a bridge. > http://www.slf4j.org/legacy.html > > Dale > > -Original Message- > From: Tomcat Random [mailto:tomcat.ran

Re: Logging Best Practices on RHEL

2013-11-27 Thread Tomcat Random
D MESSAGE- > Hash: SHA256 > > Alec, > > On 11/27/13, 11:45 AM, Tomcat Random wrote: > > I'm running Tomcat 7.0.42 on RHEL. Currently all my exceptions are > > handled with e.printStackTrace() and go to catalina.out, which > > doesn't rotate. > > Yuk. &

Logging Best Practices on RHEL

2013-11-27 Thread Tomcat Random
I'm running Tomcat 7.0.42 on RHEL. Currently all my exceptions are handled with e.printStackTrace() and go to catalina.out, which doesn't rotate. Could someone be so kind as to recommend a better way to handle logging, with specific steps. Daily error logs would be a good start, instead of one gia

Re: APR Connector questions

2013-09-23 Thread Tomcat Random
Ok, thanks for the advice. If it means removing one more layer of complexity, I'm all for it. Best, Alec On Fri, Sep 20, 2013 at 11:57 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > &g

Re: APR Connector questions

2013-09-20 Thread Tomcat Random
ep 19, 2013 at 1:56 PM, Jeffrey Janner wrote: > > -Original Message- > > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > > Sent: Thursday, September 19, 2013 12:38 PM > > To: Tomcat Users List > > Cc: Tomcat Random > > Subject: Re: AP

ARP Connector questions

2013-09-19 Thread Tomcat Random
Tomcat 7.0.42, RHEL6 I've installed the ARP connector and have my service.xml configured with the only enabled connector being: 1. I'm expecting about 2500 simultaneous visitors. Any thoughts on how much I might want to bump up the maxThreads and acceptCount? 2. Does the ARP connector wo

Re: Tomcat 7.0 logging on different platforms

2013-08-28 Thread Tomcat Random
tz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > To whom it may concern, > > On 8/23/13 4:08 PM, Tomcat Random wrote: > > I've deleted any reference in logging.properties to the console. > > However the file rm'

Re: session-replication fails on restart or kill

2013-08-27 Thread Tomcat Random
08/2013 22:41, Tomcat Random wrote: > > In a great moment of DUH, I realized I had the expireSessionsOnShutdown > to > > true. > > > > >expireSessionsOnShutdown="false" > >notifyLis

Re: session-replication fails on restart or kill

2013-08-27 Thread Tomcat Random
In a great moment of DUH, I realized I had the expireSessionsOnShutdown to true. All working nicely now. On Tue, Aug 27, 2013 at 12:27 PM, Tomcat Random wrote: > Tomcat 7.0.42 / RHEL 6 / Two physical servers, with one tomcat instance on > each server. Physical loadbalancer with

session-replication fails on restart or kill

2013-08-27 Thread Tomcat Random
Tomcat 7.0.42 / RHEL 6 / Two physical servers, with one tomcat instance on each server. Physical loadbalancer with sticky sessions. No proxy servers. I've set up session-replication using the delta-manager. I can confirm it works just lovely when the LB switches over from one box to the other. Usi

Re: Logging for session-replication debugging

2013-08-26 Thread Tomcat Random
Thank you, works perfectly. On Mon, Aug 26, 2013 at 4:25 PM, Mark Eggers wrote: > On 8/26/2013 12:29 PM, Tomcat Random wrote: > >> What exactly should go in logging.properties to get the most information >> about clustering/session replication? >> >> I see two

Logging for session-replication debugging

2013-08-26 Thread Tomcat Random
What exactly should go in logging.properties to get the most information about clustering/session replication? I see two different logging suggestions, one in the docs and one in the FAQ. Tried both but couldn't get anymore information that what's there already coming out in the logs: No warnings,

Re: Tomcat 7.0 logging on different platforms

2013-08-23 Thread Tomcat Random
e.level = FINE # To see debug messages in TldLocationsCache, uncomment the following line: #org.apache.jasper.compiler.TldLocationsCache.level = FINE # For memcached session manager de.javakaffee.web.msm.level = WARNING On Thu, Aug 22, 2013 at 11:52 AM, Konstantin Kolinko wrote: > 2013/8/22

Tomcat 7.0 logging on different platforms

2013-08-22 Thread Tomcat Random
My development setup is Win7 while my production is RHEL6. Both of the environments have the same settings in conf/logging.properties but the files in logs/ are slightly different. The access logs are named the same way. but on RHEL there's no tomcat7-stdout or tomcat7-stderr log files. Just 'cata

Clean up after building and installing ARP on RHEL 6

2013-08-01 Thread Tomcat Random
Spent a while getting APR installed and my logs are now showing no warning and indicate the native libraries are working. As per the docs: "The libraries will be found in $CATALINA_HOME/lib" - Yup, that's fine. But it seems like I have APR/native directories in several places now. Are the APR lib

Re: Cannot start apache tomcat 7.0 if server path contains two consecutive spaces.

2013-08-01 Thread Tomcat Random
"Spaces in paths (and filenames) are evil, and should never have been allowed in the first place. A special place in hell is reserved for the genius who first allowed this stupid thing in an OS. Luled at this. The underscore is your friend. I find it odd that the OP can't just rename said direct

Re: Configuration question for 2500 simultaneous users.

2013-08-01 Thread Tomcat Random
ed, Jul 31, 2013 at 11:09 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > > On 7/30/13 3:42 PM, Tomcat Random wrote: > > The project I'm working on has 5000 simultaneous users average.

Re: Configuration question for 2500 simultaneous users.

2013-08-01 Thread Tomcat Random
ity, in places where the app behaves slowly. Best, Alec On Tue, Jul 30, 2013 at 6:17 PM, Mark Eggers wrote: > On 7/30/2013 1:17 PM, Tomcat Random wrote: > >> Thanks Mark, I will give it a close read. >> >> As far as profiling, are you using any tools that are worth me

Re: Configuration question for 2500 simultaneous users.

2013-07-30 Thread Tomcat Random
Thanks Mark, I will give it a close read. As far as profiling, are you using any tools that are worth mentioning? Best, A On Tue, Jul 30, 2013 at 4:02 PM, Mark Eggers wrote: > On 7/30/2013 12:42 PM, Tomcat Random wrote: > >> The project I'm working on has 5000 simultaneous

Configuration question for 2500 simultaneous users.

2013-07-30 Thread Tomcat Random
The project I'm working on has 5000 simultaneous users average. I have two physical servers both running an instance of Tomcat 7.0. They're behind a physical load balancer with sticky, least connections balancing. Nothing in front of the Tomcats. Port 80 to is routed to them by iptables. Anyone ou

Session replication advice

2013-07-24 Thread Tomcat Random
I have two physical servers running Tomcat 7.0.42, each running the same webapp. I'm interested in some advice with session replication. I'm not concerned with fail-over, or high-availability. I just want to be able to have sessions maintained when the user is routed to a different server by the l

Re: Confusion about session replication

2013-07-24 Thread Tomcat Random
concern, > > (Might we know your real name? The above introduction feels so > impersonal...) > > On 7/24/13 11:13 AM, Tomcat Random wrote: > > Setup: - Two physical servers each running Tomcat 7.0.42 - Brocade > > load balancer in front > > > > The load bala

Confusion about session replication

2013-07-24 Thread Tomcat Random
Setup: - Two physical servers each running Tomcat 7.0.42 - Brocade load balancer in front The load balancer is set to source IP persistence for 5 minutes. This time can be changed of course. The thing I don't understand is 5 minutes or 5 hours - at then end that time limit the user can be sent to

Multiple instances of Tomcat 7.0 on one server

2013-07-19 Thread Tomcat Random
We currently are setting a site that receives fairly heavy traffic (5000 simultaneous users). We have two physical servers. As a general idea, is there performance to be gained by running multiple instances of Tomcat 7.0? For example, two instances on one physical server and two instances on the o