[jboss-jira] [JBoss JIRA] Commented: (JBAS-4286) users.properties file not being correctly located in CustomSecurityManagerTestCase
Anil Saldhana (JIRA)
jira-events at lists.jboss.org
Mon Apr 9 13:35:58 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4286?page=comments#action_12358702 ]
Anil Saldhana commented on JBAS-4286:
-------------------------------------
Richard, in the OS that is failing, check that the /server/custom-secmgr/conf/jboss-service.xml in JBoss instance, check that the following exists under
<mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
The following should be present:
<attribute name="SecurityManagerClassName">org.jboss.test.security.test.CustomSecurityManager</attribute>
If not, the following search and replace in the ant target has failed on the windows instance:
-------------
<!-- Replace the security manager classname -->
<replace file="${jboss.dist}/server/custom-securitymgr/conf/jboss-service.xml">
<replacetoken><![CDATA[<attribute name="SecurityManagerClassName">org.jboss.security.plugins.JaasSecurityManager</attribute>]]>
</replacetoken>
<replacevalue><![CDATA[<attribute name="SecurityManagerClassName">org.jboss.test.security.test.CustomSecurityManager</attribute>]]>
</replacevalue>
</replace>
--------------
> users.properties file not being correctly located in CustomSecurityManagerTestCase
> ----------------------------------------------------------------------------------
>
> Key: JBAS-4286
> URL: http://jira.jboss.com/jira/browse/JBAS-4286
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Security
> Affects Versions: JBossAS-4.2.0.CR1
> Environment: Windows 2003, x86_64, x86, BEA JVM
> Reporter: Richard Achmatowicz
> Assigned To: Anil Saldhana
> Attachments: output.log, server.log
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list