javax.security.auth.login.LoginException: Unable to connect to datasource jdbc/securityDataSource for database user null.

Coderanch | Jay Tai | 3 years ago
  1. 0

    Glassfish 3 security - Form based authentication using a JDBC Realm

    Stack Overflow | 5 years ago | sfrj
    javax.security.auth.login.LoginException: Unable to connect to datasource jdbc/security for database user user. at com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm.getConnection(JDBCRealm.java:550) at com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm.isUserValid(JDBCRealm.java:393) at com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm.authenticate(JDBCRealm.java:311) at com.sun.enterprise.security.auth.login.JDBCLoginModule.authenticate(JDBCLoginModule.java:72) at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:90) at com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:579) at com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:341) at com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:199) at com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:152) at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:479) at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:418) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:264) at org.apache.catalina.authenticator.AuthenticatorBase.processSecurityCheck(AuthenticatorBase.java:1015) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:615) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
  2. 0

    JDBCRealm authentication works with Servlet @WebFilter but throws NamingEcception when using security constraint in web.xml

    Stack Overflow | 2 years ago | Sheba
    javax.security.auth.login.LoginException: Unable to connect to datasource java:app/jdbc/sampleresource for database user null.
  3. 0

    JDBCRealm unable to connect to datasource for authentification

    Stack Overflow | 8 months ago | Allinone51
    javax.security.auth.login.LoginException: Unable to connect to datasource jdbc/connectionPool for database user null.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Glassfish Database Authentication with Derby

    Stack Overflow | 1 year ago | Yster
    javax.security.auth.login.LoginException: Cannot connect to the data source jdbc/Coiffure for the database user null.
  6. 0

    JDBC Realm stops working after first login

    Oracle Community | 9 years ago | cupahjoe
    com.sun.enterprise.security.LoginException: Unable to connect to datasource jdbc/komodo_G3 for database user null.[/b]

    20 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NameNotFoundException

      securityDataSource not found

      at com.sun.enterprise.naming.impl.TransientContext.doLookup()
    2. Glassfish Naming
      SerialContext.lookup
      1. com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
      2. com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
      3. com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
      4. com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
      5. com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:114)
      6. com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:478)
      6 frames