[jboss-jira] [JBoss JIRA] Commented: (JBAS-5055) Failed to load users/passwords/role files
Anil Saldhana (JIRA)
jira-events at lists.jboss.org
Mon Dec 10 01:44:51 EST 2007
[ http://jira.jboss.com/jira/browse/JBAS-5055?page=comments#action_12391258 ]
Anil Saldhana commented on JBAS-5055:
-------------------------------------
Thomas, the problem is that the war file that you generate has a jboss-web.xml with:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.j
boss.org/j2ee/dtd/jboss-web_5_0.dtd">
<jboss-web>
<context-root>/jaxws-jbws1840</context-root>
</jboss-web>
There is no mention of the security domain (in your case, JBossWS) that you require. Because of this, the security domain defaults to "jboss-web-policy" which overrides "other" => looks for the default users.properties/roles.properties.
Are you able to get the security domain setting into jboss-web.xml?
> 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: Anil Saldhana
> 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