aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Resin 3 Forms Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Resin 3 Forms Authentication" Watch "Resin 3 Forms Authentication" New topic
Author

Resin 3 Forms Authentication

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

I am wanting to start using Resin instead of Tomcat for my personal use and I am having a problem getting Forms authentication to work. Using the code I am posting below, I always get the error.jsp page returned even though I am using the correct username and password and I don't know why. I have tried both the XMLAuthentication and the JDBCAuthentication and both return the error page. The code below is for the XMLAuthentication.
web.xml

resin-web.xml

login.jsp

In my resin-web.xml file I have commented out the JDBCAuthentication part and I am using the <user> tag to specify the user with roles. Any help would be greatly appreciated.


GenRocket - A Test Data Generation Platform
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

I figured out that I had to add
<password-digest>none</password-digest>
because if I don't it uses MD5 by default.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resin 3 Forms Authentication
 
Similar Threads
Servlet User Roles
Security constraints declaratively in web.xml
WARNING: Unexpected error forwarding to login page
Login Exception when using JDBC Realm (Glassfish V3.1 + IceFaces 2 + MySQL)
Resin DB-pooling + authentication. HELP!