Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2158

Impossible to login to webapps using container-managed sec, NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Can't Do
    • Major
    • None
    • None
    • Security
    • None

    Description

      Impossible to login to webapps using container-managed security.

      Realm specified in tomcat's deployment descriptor, referring to realm in conf/login-config.xml causes NPE in loading of security manager:

      Caused by: javax.naming.NamingException: Failed to create sec mgr:null
      at org.jboss.security.plugins.JaasSecurityManagerService.newSecurityDomainCtx(JaasSecurityManagerService.java:547)

      This probably happens on line 534. If the securityMgrClass variable is not set by setSecurityManagerClassName()

      I have done a few hours of debugging and it is not my login-config.xml or JAAS classes. Please see the forum thread for the login-config.xml I use and some of the logging output.

      Attachments

        1. jboss-service.xml
          23 kB
        2. jboss-service.xml
          23 kB
        3. jboss-web.xml
          0.3 kB

        Activity

          People

            Unassigned Unassigned
            ahardy66 ahardy66 (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: