File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 15299
    
    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 - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    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
Login Exception when using JDBC Realm (Glassfish V3.1 + IceFaces 2 + MySQL)
Servlet User Roles
Security constraints declaratively in web.xml
Resin DB-pooling + authentication. HELP!
WARNING: Unexpected error forwarding to login page