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

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

      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.

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

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

                Created:
                Updated:
                Resolved: