Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid direct reference to form login page

 
Pedro Garcia
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I configure my tomcat 4.1.18 to managed JRealm security.
here is my server.xml configuration

When I run the protected example and login as an user without the role, send me next error.

HTTP Status 400 - Invalid direct reference to form login page
type Status report
message Invalid direct reference to form login page
description The request sent by the client was syntactically incorrect
(Invalid direct reference to form login page).

This is my web.xml restrictions

I call in my login page
<form method="POST" action='<%= response.encodeURL("j_security_check") %>' >
How can I validate or managed this exceptions?
 
Pedro Garcia
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same problem persists with new tomcat versions.
Somebody know how to fix that?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic