Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-113

users.properties file not being correctly located in CustomSecurityManagerTestCase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.BETA
    • 4.2.ALPHA1
    • System
    • None
    • Windows 2003, x86_64, x86, BEA JVM

      The following tests are failing due to a common error:
      testGetCallerPrinciple, testStatefulCreateCaller, testMethodAccess, testDomainMethodAccess
      testMethodAccess2, testLocalMethodAccess, testUncheckedRemote, testRemoteUnchecked, testUnchecked
      testUncheckedWithLogin, testExcluded, testRunAs, testDeepRunAs
      and others

      The common error is:
      Suite: org.jboss.test.security.test.CustomSecurityManagerTestCase(custom-secmgr)
      Test: testDomainMethodAccess
      Type: error
      Exception: java.rmi.AccessException
      Message: SecurityException; nested exception is: javax.security.auth.login.LoginException: Missing users.properties file.
      ---------------------------------

      The test case CunstomSecurityManagerTestCase is a subclass of the test case EJBSpecUnitTestCase.
      EJBSpecUnitTestCase deploys the jar security-spec.jar which contains users.properties and roles.properties files, but these seem not to be located.

      From the output.log, it seems that the security-spec.jar is not being deployed before the custom-secmgrtests.ear. I have attached the log.

        1. output.log
          106 kB
        2. server.log
          1.31 MB

              anil.saldhana Anil Saldanha (Inactive)
              rachmato@redhat.com Richard Achmatowicz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: