[jboss-jira] [JBoss JIRA] Commented: (JBAS-5055) @SecurityDomain (Failed to load users/passwords/role files)

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Thu Jun 12 07:23:15 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-5055?page=comments#action_12416702 ] 
            
Alessio Soldano commented on JBAS-5055:
---------------------------------------

The jbws1840 test has been moved to the jbossws framework while working on the related JBWS-2107 issue. The cause for this was the @SecurityDomain annotation being in different packages in AS 4.2 and AS 5.0.
The new test now uses the right annotation according to the target container, thus the security domain is correctly declared.
See: http://jbws.dyndns.org:8280/hudson/job/Native-Core-AS-5.0.1/86/testReport/org.jboss.test.ws.jaxws.samples.securityDomain/SecurityDomainTestCase/

> @SecurityDomain (Failed to load users/passwords/role files)
> -----------------------------------------------------------
>
>                 Key: JBAS-5055
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5055
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Security, EJB3
>            Reporter: Thomas Diesler
>         Assigned To: Alessio Soldano
>            Priority: Critical
>             Fix For: JBossAS-5.0.0.CR1
>
>
> /home/tdiesler/svn/jbossws/stack/native/trunk
> [tdiesler at tddell trunk]$ ant -Dtest=jaxws/jbws1840 test
> tests-run-internal:
>     [junit] Running org.jboss.test.ws.jaxws.jbws1840.JBWS1840TestCase
>     [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 10.524 sec
>     [junit] Test org.jboss.test.ws.jaxws.jbws1840.JBWS1840TestCase FAILED
> 15:19:34,504 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
> java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
>         at org.jboss.security.auth.spi.Util.loadProperties(Util.java:366)
>         at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
>         at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
>         at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
>         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
>         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:563)
>         at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:497)
>         at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:365)
>         at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:153)
>         at org.jboss.web.tomcat.security.JBossWebRealm.authenticate(JBossWebRealm.java:374)
>         at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:181)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
>         at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> This seems to be regression

-- 
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