glassfish
  1. glassfish
  2. GLASSFISH-20692

The message "jaccfactory.notfound" in WebSecurityManager is not defined in the property File.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b89_RC5
    • Fix Version/s: 4.1
    • Component/s: security
    • Labels:
      None
    • Environment:

      OS
      Windows 7 Enterprise (Service Pack 1)

      JDK
      java version "1.7.0_11"
      Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
      Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

      Description

      Reproducible operational steps:

      asadmin set server.security-service.jacc=h.b.aaaa

      asadmin restart-domain

      You can see the message below in the server.log

      [2013-07-10T13:03:28.431+1000] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core.security] [tid: _ThreadID=83 _ThreadName=Thread-15] [timeMillis: 1373425408431] [levelValue: 1000] [[
      jaccfactory.notfound]]

      Issues:
      "jaccfactory.notfound" is not appropriate as the message logged in server.log.

      Detailed description of the issue:

      The message is logged by WebSecurityManager
      (https://svn.java.net/svn/glassfish~svn/branches/4.0/appserver/security/core-ee/src/main/java/com/sun/enterprise/security/web/integration/WebSecurityManager.java) as shown below

      public class WebSecurityManager {
      private static final Logger logger =
      Logger.getLogger(LogDomains.SECURITY_LOGGER);
      /** lines ignored **/
      private synchronized PolicyConfigurationFactory _getPolicyFactory()
      throws PolicyContextException {
      if (pcf == null) {
      try

      { pcf = PolicyConfigurationFactory.getPolicyConfigurationFactory(); }

      catch(ClassNotFoundException cnfe)

      { logger.severe("jaccfactory.notfound"); throw new PolicyContextException(cnfe); }

      catch(PolicyContextException pce)

      { logger.severe("jaccfactory.notfound"); throw pce; }

      }
      return pcf;
      }
      /** lines ignored **/
      }

      However, the message "jaccfactory.notfound" is not defined in LogStrings.properties
      (https://svn.java.net/svn/glassfish~svn/branches/4.0/nucleus/security/core/src/main/resources/com/sun/logging/enterprise/system/core/security/LogStrings.properties) for WebSecurityManager .

      I think the message "jaccfactory.notfound" should be defined in LogStrings.properties for WebSecurityManager.

      Below is a sample from EJBSecurityManager which has situation.
      The message "jaccfactory.notfound" is defined in LogStrings.properties (https://svn.java.net/svn/glassfish~svn/branches/4.0/appserver/ejb/ejb-container/src/main/resources/com/sun/logging/enterprise/system/container/ejb/LogStrings.properties)
      for EJBSecurityManager (https://svn.java.net/svn/glassfish~svn/branches/4.0/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/security/application/EJBSecurityManager.java).

        Activity

          People

          • Assignee:
            JeffTancill
            Reporter:
            xianwu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: