tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Tomcat form auth not using filters
Date Mon, 08 Apr 2013 19:58:31 GMT
2013/4/8 Sergio Vieira Rolanski <sergio@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message