[jboss-jira] [JBoss JIRA] Commented: (JBAS-4286) users.properties file not being correctly located in CustomSecurityManagerTestCase

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Mon Apr 2 15:31:58 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4286?page=comments#action_12358147 ] 
            
Richard Achmatowicz commented on JBAS-4286:
-------------------------------------------

I ran the same test on Windows2k and RHEL 4, using the same alpha4 distribution, and get different messages when the configurations are being created. 

Notice that in the RHEL version, there are messaages of files being copied which do not appear in the Windows version. 

I'm still investigating...

Windows
========
C:\JBPAPP\JBPAPP-03-30-07-alpha4-x86-BEA\src\testsuite>build.bat -Djboss.dist=c:
\JBPAPP\JBPAPP-03-30-07-alpha4-x86-BEA\jboss-4.2.0.GA -Dnode0=%MYTESTIP_1% -Dnode1=%MYTESTIP_2% -DudpGroup=239.11.12.13 tests-custom-securitymgr
Calling ..\tools\bin\ant.bat -Djboss.dist c:\JBPAPP\JBPAPP-03-30-07-alpha4-x86-BEA\jboss-4.2.0.GA -Dnode0 10.16.32.161 -Dnode1 10.16.32.162 -DudpGroup 239.11.12.13 tests-custom-securitymgr
Buildfile: build.xml

tests-custom-securitymgr:
     [echo] creating custom-securitymgr config
     [echo] Overwriting config descriptors
     [copy] Warning: C:\JBPAPP\JBPAPP-03-30-07-alpha4-x86-BEA\src\testsuite\output\resources\test-configs\custom-securitymgr not found.
[server:start] Starting server "custom-securitymgr" with command:
[server:start] C:\opt\x86\jrockit-jdk1.5.0_08\bin\java -cp c:\JBPAPP\JBPAPP-03-3
0-07-alpha4-x86-BEA\jboss-4.2.0.GA\bin\run.jar;c:\opt\x86\jrockit-jdk1.5.0_08\li
b\tools.jar   org.jboss.Main -c custom-securitymgr -b 10.16.32.161 -u 239.11.12.13
    [mkdir] Created dir: C:\JBPAPP\JBPAPP-03-30-07-alpha4-x86-BEA\src\testsuite\
output\reports
     [echo] Starting patternset=custom-secmgr.includes config=custom-secmgr
    [junit] Running org.jboss.test.security.test.CustomSecurityManagerTestCase
    [junit] Tests run: 26, Failures: 3, Errors: 19, Time elapsed: 5.719 sec
    [junit] Test org.jboss.test.security.test.CustomSecurityManagerTestCase FAILED
[server:stop] Shutting down server: custom-securitymgr

BUILD SUCCESSFUL
Total time: 34 seconds

RHEL4
======
[dtf-admin at dev90 testsuite]$ ./build.sh -Djboss.dist=/home/dtf-admin/JBPAPP-04-02-07/jboss-4.2.0.GA -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -DudpGroup=239.11.12.86 tests-custom-securitymgr
Searching for build.xml ...
Buildfile: /qa/services/dtf-admin/JBPAPP-04-02-07/src/testsuite/build.xml

tests-custom-securitymgr:
     [echo] creating custom-securitymgr config
     [copy] Copying 174 files to /home/dtf-admin/JBPAPP-04-02-07/jboss-4.2.0.GA/server/custom-securitymgr
     [echo] Overwriting config descriptors
     [copy] Warning: /qa/services/dtf-admin/JBPAPP-04-02-07/src/testsuite/output/resources/test-configs/custom-securitymgr not found.
     [copy] Copying 1 file to /home/dtf-admin/JBPAPP-04-02-07/jboss-4.2.0.GA/server/custom-securitymgr/lib
[server:start] Starting server "custom-securitymgr" with command: 
[server:start] /qa/tools/opt/x86_64/jdk1.5.0_11/bin/java -cp /home/dtf-admin/JBPAPP-04-02-07/jboss-4.2.0.GA/bin/run.jar:/opt/x86_64/jdk1.5.0_11/lib/tools.jar   org.jboss.Main -c custom-securitymgr -b 10.16.86.161 -u 239.11.12.86 
    [mkdir] Created dir: /qa/services/dtf-admin/JBPAPP-04-02-07/src/testsuite/output/log
     [echo] Starting patternset=custom-secmgr.includes config=custom-secmgr
    [junit] Running org.jboss.test.security.test.CustomSecurityManagerTestCase
    [junit] Tests run: 26, Failures: 0, Errors: 0, Time elapsed: 18.36 sec
[server:stop] Shutting down server: custom-securitymgr

BUILD SUCCESSFUL
Total time: 52 seconds




> 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