2013/4/8 Sergio Vieira Rolanski <ser...@strategos.com.br>:
> Hello,
>
> Using Java 6, Apache Tomcat 7.0.34, Mojarra 2.1.19 and PrimeFaces 3.5
>
> I set up my application to use forms auth and it is working, but I have a 
> problem when the session expires.
> I'm not sure what Tomcat does when the session expires to render (or 
> redirect) the login page instead of the request page.

The same as for a new request that has no session at all.  A valve
(Authenticator) will intercept the request before it reaches your
application and will display a login form.

> I get an Hibernate exception as root cause saying that there is no session 
> open, that means the request is ignoring my HibernateFilter (among other 
> important filters) which opens the session and transaction for the current 
> request resulting in an error.

A hibernate session and a servlet session are two different entities.
There is no relation between them.

> Any ideas how do I fix this?

No. We do not have your source code nor you stacktrace.

I would first find out how I got there. What is stacktrace of the call
when this issue happens and what is requested URL.

All filters are mentioned in stacktrace (full stacktrace is written to
the logs). It is easy to see whether your filter is there.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to