I am using Glassfish 3.1.1, with JSF and j_security_check. Whenever I try
to login I get the following exception:
com.sun.enterprise.security.auth.login.common.LoginException: Login failed:
Failed file login for Admin.
at
com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:394)
at
com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:240)
at
com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:153)
at
com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:512)
at
com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:453)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:268)
at
org.apache.catalina.authenticator.AuthenticatorBase.processSecurityCheck(AuthenticatorBase.java:911)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:546)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
....
Caused by: javax.security.auth.login.LoginException: Failed file login for
Admin.
at
com.sun.enterprise.security.auth.login.FileLoginModule.authenticate(FileLoginModule.java:84)
at
com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:117)
at
com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
From looking at other posts, I have checked the following:
My realm classname is: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm
(although it appears I am using the File Realm)
realm name in realm matches and realm-name in web.xml.
jndi in realm matches jndi of connection pool resource
I have rebuilt my connection pool and associated jndi name.
I have tried using clear text passwords(digest=none) as well as SHA-256 for
authentication (changing JAAS context and digest algorithm)
Any ideas greatly appreciated.
--
[Message sent by forum member 'mlbrooks']
View Post: http://forums.java.net/node/850212