when exit of application I can't newly do login using DataSourceRealm
Fernando <[email protected]> Wed, 14 Aug 2024 09:06:51 -0300
| Newsgroups | gmane.comp.java.openejb.user |
|---|---|
| Message-ID | <CAMzbw5-6MfNh3ihFKyMN46UnpUW4eZ8iD1=iKmAL3MThCLWojA@mail.gmail.com> |
Hi all,
I am experimenting a rare behaviour with my application, when one user
logout and try login newly, fails!
I did the same question on other forums, where I received that " when you
use JEE-standard Container security, the user should not explicitly request
the login/loginfail pages. It won't work right." however I did that works
with others jee servers, then I start to think that maybe is something
misconfigured in Apache Tomee.
In details, this is happening:
when one user exit from application and try to do login newly, this one
thrown this error:
* http://localhost:8080/appweb/privado/j_security_check
<http://localhost:8080/appweb/privado/j_security_check> *
But if in the address bar, I delete the portion that says "/private/logout"
then it starts correctly!
In servlet that execute when the user choice exit I do this:
HttpSession session = request.getSession();
session.invalidate();
request.getRequestDispatcher("/login.jsp").forward(request, response);
Any Ideas what is happening?
Thanks in advance any suggestion!
Regards