my dog learned polymorphism*
The moose likes Tomcat and the fly likes Invalid direct reference to form login page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Invalid direct reference to form login page" Watch "Invalid direct reference to form login page" New topic
Author

Invalid direct reference to form login page

Pedro Garcia
Greenhorn

Joined: Sep 12, 2002
Posts: 15
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
Pedro Garcia
Greenhorn

Joined: Sep 12, 2002
Posts: 15
The same problem persists with new tomcat versions.
Somebody know how to fix that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invalid direct reference to form login page
 
Similar Threads
Invalid direct reference to form login page.
WebLogic Form-Based Authentication Problem
HTTP 403 for authenticated users - FIXED
Form based authentication in java server faces.
Is auth-constraint related to security-role?