Thanks Matt,

that's what I thought aswell, but after playing the "filter lottery" it
turned out to be sitemesh. 

As it appears in sitemesh 2.2.1, the PageFilter class has this snippet of
code:

           // force creation of the session now because Tomcat 4 had
problems with
            // creating sessions after the response had been committed
            if (Container.get() == Container.TOMCAT) {
                request.getSession(true);
            }

I saw that PageFiler is deprecated in 2.4 in favor of SiteMeshFilter, but I
did not get the chance to try and upgrade. 

As a workaround I have changed the  for the sitemesh filter from "/*" to
"*.jsp" and it seems to work. 

Thanks again for your suggestion,

Florian

mraible wrote:
> 
> I would try commenting out filters locally and see. My guess is the  
> securityFilter is causing this.
> 
> Matt
> 
> On Jan 28, 2009, at 2:35 PM, Florian Kirchhoff wrote:
> 
>>
>> Hi,
>>
>> I am using AppFuse 2.0 with Spring MVC to develop a simple web  
>> application
>> deployed on Tomcat 5.5.23.
>> I have a problem with the creation of unwanted session. In our  
>> production
>> environement a load balancer is used which issues an HTTP GET every 10
>> seconds to check the application is up. The GET is for a URL to an  
>> image
>> (e.g. /myapp/images/check.gif). The problem is that each of these  
>> requests
>> creates a new session. My guess is that one of the filters that  
>> AppFuse has
>> configured is responsible for this behavior.
>> My questions are:
>> 1) Is there a way to find out which Filter creates the sessions?
>> 2) If the responsible filter cannot be switched off how can I prevent
>> session from being created for a simple HTTP get of an image?
>>
>> Thanks,
>>
>> Florian
>> -- 
>> View this message in context:
>> http://www.nabble.com/Find-Filter-that-creates-sessions-tp21715563s2369p21715563.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Find-Filter-that-creates-sessions-tp21715563s2369p21728611.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

Reply via email to