Browser Caching Of Static Files (css/images/js)

2011-07-16 Thread Reinwald Warapen
Hey, I recently implemented that static resources of my web application running on Tomcat v 6.0.32 should be cached by the browser for a very large period of time (> 1 year) . Though of sharing these helpful articles for those who are interested in the same. http://www.reinwaldwarapen.com/

Re: Tomcat 6.0 Clustering and non-sticky session loadbalancer

2011-06-17 Thread Reinwald Warapen
You may want to go through this if you want an alternative to store/share sessions: http://www.reinwaldwarapen.com/2011/01/storing-and-sharing-sessions-among.html On 6/17/2011 2:12 PM, Pontus wrote: Hello, The Tomcat 6.0 Clustering/Session Replication HOW-TO states "Make sure that your loadba

Re: JDBCStore Persistent Manager

2011-04-27 Thread Reinwald Warapen
I had the same requirement and tried everything possible with the Persistent Manager. I use the Memcached Session Manager (non-sticky approach) and it works brilliantly. Take a look at this which may be of help to you : http://www.reinwaldwarapen.com/2011/01/storing-and-sharing-sessions-among.

Setting the expiry for static content served by Tomcat 6.0.32

2011-02-23 Thread Reinwald Warapen
Hey, Is there any way I can specify the expiry of static content (js,css etc) by some setting in the context.xml or sever.xml .Or the only way to achieve this is to write my own filter which will add the appropriate header. Thanks

Some useful information which some of you may find of use

2011-02-14 Thread Reinwald Warapen
We are in the process of migration our servers from Resin Pro to Tomcat 6.0.32.Have documented some changes/issues/information which may be of use to some of you. So thought of sharing it with you all http://www.reinwaldwarapen.com/2011/02/how-hell-did-that-value-come-in-cookie.html http://www

Re: Issue reading a cookie having a colon in the value . Is this a bug in Tomcat 6.0.32 ?

2011-02-08 Thread Reinwald Warapen
On 2/9/2011 1:15 AM, Mark Thomas wrote: On 08/02/2011 18:58, Reinwald Warapen wrote: Hey, I am facing a very weird problem when trying to read a cookie who's value has a colon. The issue faced is that when a request is routed from a jsp the cookie versions are messed up. But when the se

Issue reading a cookie having a colon in the value . Is this a bug in Tomcat 6.0.32 ?

2011-02-08 Thread Reinwald Warapen
Hey, I am facing a very weird problem when trying to read a cookie who's value has a colon. The issue faced is that when a request is routed from a jsp the cookie versions are messed up. But when the servlet is directly called the versions are maintained as expected . Ive written a small test

Re: Facing a problem when reading cookies having a colon in the value (Tomcat 6.0.32)

2011-02-07 Thread Reinwald Warapen
Any suggestion here ? On 2/7/2011 10:58 PM, Reinwald Warapen wrote: Hey, I am using Tomcat 6.0.32 and im facing a problem when reading cookies having a colon in the value. // start snippet Cookie test=new Cookie("TESTING","http://test:8081";); response.ad

Facing a problem when reading cookies having a colon in the value (Tomcat 6.0.32)

2011-02-07 Thread Reinwald Warapen
Hey, I am using Tomcat 6.0.32 and im facing a problem when reading cookies having a colon in the value. // start snippet Cookie test=new Cookie("TESTING","http://test:8081";); response.addCookie(test); //end snippet Now during the next request when I try reading the cookie valu

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Reinwald Warapen
On 1/25/2011 5:02 PM, Adib wrote: Hi, I am trying to understand the settings on the persistent session manager on tomcat 6 and 7. It seems that the persistent session manager is primarily meant for the purpose of swapping IDLE sessions to persistent storage and then hope that they expire, I can

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/19/2011 2:27 PM, Reinwald Warapen wrote: On 1/20/2011 12:47 AM, Mark Thomas wrote: On 19/01/2011 19:17, Reinwald Warapen wrote: I am writing a serializer/deserializer functionality (used in my custom session manager th

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
On 1/20/2011 8:03 PM, Caldarale, Charles R wrote: From: Reinwald Warapen [mailto:reinwal...@directi.com] Subject: Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib. After reading the docs I figured that one work around would be to define

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
which Martin has created is an awesome idea if you want to back up sessions to memcache. Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/19/2011 2:27 PM, Reinwald Warapen wrote: On 1/20/2011 12:47 AM, Mark Thomas wrote: On 19/01/2011 19:17, Reinwald War

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
On 1/20/2011 4:23 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/19/2011 2:27 PM, Reinwald Warapen wrote: On 1/20/2011 12:47 AM, Mark Thomas wrote: On 19/01/2011 19:17, Reinwald Warapen wrote: I am writing a serializer/deserializer functionality

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Reinwald Warapen
On 1/20/2011 12:47 AM, Mark Thomas wrote: On 19/01/2011 19:17, Reinwald Warapen wrote: I am writing a serializer/deserializer functionality (used in my custom session manager that extends ManagerBase). When deserializing I get loads of java.lang.ClassNotFoundException: exceptions. All the

Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Reinwald Warapen
I am writing a serializer/deserializer functionality (used in my custom session manager that extends ManagerBase). When deserializing I get loads of java.lang.ClassNotFoundException: exceptions. All the classes for which the exceptions are thrown can be found in my webapp/WEB-INF/classes. How d

Re: Configuring Tomcat 6 to "Always Load" and "Always Save Sessions"

2011-01-16 Thread Reinwald Warapen
lution it's not reliable as sessions/session updates might get lost." On 1/15/2011 8:52 PM, Reinwald Warapen wrote: Any idea why the session does not get persisted to the database immediately (when setting maxIdleSwap='0'). Or is there any other possible way to "Always L

Re: Configuring Tomcat 6 to "Always Load" and "Always Save Sessions"

2011-01-15 Thread Reinwald Warapen
Any idea why the session does not get persisted to the database immediately (when setting maxIdleSwap='0'). Or is there any other possible way to "Always Load" and "Always Save Sessions" from the database in Tomcat 6 On 1/14/2011 9:07 PM, Reinwald Warapen wro

Re: Configuring Tomcat 6 to "Always Load" and "Always Save Sessions"

2011-01-14 Thread Reinwald Warapen
sessionMaxInactiveCol="max_inactive" sessionTable="tomcat_sessions" sessionValidCol="valid_session" /> Thanks On

Configuring Tomcat 6 to "Always Load" and "Always Save Sessions"

2011-01-14 Thread Reinwald Warapen
Hey, Im am migrating my webapp from Resin to Tomcat 6. In Resin there is an option to "always save sessions" and "always load sessions" from the persistent store (mysql db). Ive configured my tomcat instance to use the JDBC for the persistence of sessions. (http://tomcat.apache.org/tomcat-6.0-