File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Trouble using j_security form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Trouble using j_security form" Watch "Trouble using j_security form" New topic
Author

Trouble using j_security form

David Lidz
Greenhorn

Joined: Mar 30, 2011
Posts: 14
After years of finding asnwers in these forums I thought it was about time to create an account^^

Anywho, I have a problem using login form against a tomcat server.
It redirects any user to the loginscreen as wanted but it always fails with he login(ie it ends up in the error page).
I believe the problem lies in the tomcat configuration but I dont really know where, and afetr hours of searching im kinda spent:S

tomcat-users.xl

WEB-INF/web.xml

I know its frowned to use the tomcat-users.xml but its more of a showcase website atm.


David Lidz
Greenhorn

Joined: Mar 30, 2011
Posts: 14
I was able to solve it, what I didnt know was that Eclipse was working against another tomcat-user.xml file in the workspace folder and not the one in the tomcat directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble using j_security form
 
Similar Threads
Keep having to login with container based authentaction.
security constraints - login doesnt work
Redirection after realm authentication
security-constraint login error
Form Authentication not working