<div dir="ltr"><div><div><div><div><div>Could someone please send full standalone.xml for eap 6.2, or it&#39;s vital parts.<br><br></div>I want to configure basic web.xml auth with database realm, but I always finish with error.<br>
</div>Is there a difference in configuration between jboss 7.1 and jboss 7.3 and eap 6.2 ?<br><br></div>In &lt;subsystem xmlns=&quot;urn:jboss:domain:security:1.2&quot;&gt;<br><br></div>I added <br><br>                &lt;security-domain name=&quot;mysqldomain&quot; cache-type=&quot;default&quot;&gt;<br>
                    &lt;authentication&gt;<br>                        &lt;login-module code=&quot;Database&quot; flag=&quot;required&quot;&gt;<br>                            &lt;module-option name=&quot;dsJndiName&quot; value=&quot;java:jboss/datasources/petclinicDS&quot;/&gt;<br>
                            &lt;module-option name=&quot;principalsQuery&quot; value=&quot;select passwd from USERS where login=?&quot;/&gt;<br>                            &lt;module-option name=&quot;rolesQuery&quot; value=&quot;select role &#39;Roles&#39; from USER_ROLES where login=?&quot;/&gt;<br>
                        &lt;/login-module&gt;<br>                    &lt;/authentication&gt;<br>                &lt;/security-domain&gt;<br><br>database java:jboss/datasources/petclinicDS is ok, it is used in petclinic app and works.<br>
<br></div><div>and in jboss-web.xml:<br><br>&lt;jboss-web&gt;<br>&lt;security-domain&gt;java:/jaas/mysqldomain&lt;/security-domain&gt;<br>also tried with &lt;security-domain&gt;mysqldomain&lt;/security-domain&gt;<br>&lt;/jboss-web&gt;<br>
<br></div><div>and in web.xml:<br><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</p><p>&lt;web-app xmlns=&quot;<a class="" href="http://java.sun.com/xml/ns/javaee" rel="nofollow">http://java.sun.com/xml/ns/javaee</a>&quot; xmlns:xsi=&quot;<a class="" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</p>
<p>    xsi:schemaLocation=&quot;<a class="" href="http://java.sun.com/xml/ns/javaee" rel="nofollow">http://java.sun.com/xml/ns/javaee</a> <a class="" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" rel="nofollow">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a>&quot;</p>
<p>    version=&quot;2.5&quot;&gt;</p><p>&lt;security-constraint&gt;</p><p>    &lt;web-resource-collection&gt;</p><p>        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;</p><p>    &lt;/web-resource-collection&gt;</p><p>    &lt;auth-constraint&gt;</p>
<p>        &lt;role-name&gt;Manager&lt;/role-name&gt;</p><p>    &lt;/auth-constraint&gt;</p><p>&lt;/security-constraint&gt;</p><p>&lt;login-config&gt;</p><p>    &lt;auth-method&gt;BASIC&lt;/auth-method&gt;</p><p>    &lt;realm-name&gt;Sample Realm&lt;/realm-name&gt;</p>
<p>&lt;/login-config&gt;</p><p>&lt;security-role&gt;</p><p>    &lt;role-name&gt;Manager&lt;/role-name&gt;</p><p>&lt;/security-role&gt;</p><p>&lt;/web-app&gt;</p>BR<br></div><div>Jakub<br></div></div>