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

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon Dec 10 06:21:51 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-5055?page=all ]

Thomas Diesler reassigned JBAS-5055:
------------------------------------

    Assignee: Carlo de Wolf  (was: Thomas Diesler)

The security domain is not generated because 

container.resolveAnnotation(SecurityDomain.class)

now incorrectly returns null.


   public void addSecurityDomain(Element jbossWeb, Deployment dep)
   {
      String securityDomain = null;
      
      Ejb3Deployment ejb3Deployment = dep.getAttachment(Ejb3Deployment.class);
      if (ejb3Deployment != null)
      {
         Iterator it = ejb3Deployment.getEjbContainers().values().iterator();
         while (it.hasNext())
         {
            EJBContainer container = (EJBContainer)it.next();
            SecurityDomain anSecurityDomain = (SecurityDomain)container.resolveAnnotation(SecurityDomain.class);
            if (anSecurityDomain != null)
            {
               if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
                  throw new IllegalStateException("Multiple security domains not supported");
               
               securityDomain = anSecurityDomain.value();
            }
         }
      }
      
      if (securityDomain != null)
      {
         if (securityDomain.startsWith("java:/jaas/") == false)
            securityDomain = "java:/jaas/" + securityDomain;
         
         jbossWeb.addElement("security-domain").addText(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) 
>            Reporter: Thomas Diesler
>         Assigned To: Carlo de Wolf
>             Fix For:  JBossAS-5.0.0.Beta3
>
>
> /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