This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes WEB9102: Web Login Failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "WEB9102: Web Login Failed" Watch "WEB9102: Web Login Failed" New topic
Author

WEB9102: Web Login Failed

Luis Villamarin
Greenhorn

Joined: May 24, 2012
Posts: 21

I'm trying to get my login form to with a MySQL Database and keep on getting the following error:

WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception


That's all I get from the stack trace. I'm following this tutorial: http://blog.eisele.net/2011/01/jdbc-security-realm-and-form-based.html

This is my mapping on glassfish-web.xml:



This is my web.xml:



This is my login form:



This a screenshot of my realm setup in the server. I didn't use encryption to simplify things for the moment:


Since I have nothing else in the stack but what I posted above. I'm really not sure what's wrong. I would appreciate if anyone can me a push in the right direction.
 
 
subject: WEB9102: Web Login Failed
 
Similar Threads
Tomcat with more than one Applications in WEBAPPS folder
Logout in JSF with Security managed by Glassfish v3.1
Declarative Security with Java EE (Glassfish)
JDBCRealm and Form Login
Login Exception when using JDBC Realm (Glassfish V3.1 + IceFaces 2 + MySQL)