Witam, uczę się korzystać z jboss 7.1 i próbuje skorzystać z logowania http basic authentication, jednak nie potrafię poprawnie ustawić nazwy użytkownika i hasła. Moje pytanie gdzie powinienem umieścić pliki roles.properties i users.properties z danymi do logowania? Po uruchomieniu aplikacji główna strona się wyświetla, po dopisaniu /admin pyta o hasło jednak po wpisaniu loginu i hasła nie udaje mi się zalogować. Pliki properties umieściłem w katalogu src, jako że z tego co znalazłem w internecie powinny znaleźć się w katalogu classes.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>HttpBasicTest</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>MySecureResources</web-resource-name>
<description>Some Description</description>
<url-pattern>/admin/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>TestRole</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<role-name>TestRole</role-name>
</security-role>
</web-app>
jboss-web.xml
<jboss-web>
<security-domain>other</security-domain>
</jboss-web>
HTTPBasicTest-users.properties
admin=admin123
admin1=0192023a7bbd73250516f069df18b500
HTTPBasicTest-roes.properties
admin=TestRole
admin1=TestRole