1 Reply Latest reply on Mar 7, 2013 1:13 PM by James Perkins

    jboss-as-maven-plugin configuring jaas realm

    Bruno Feki Newbie

      Hi folks,

       

      I am trying to configure my maven project with the jboss-as-maven-plugin.

      I have already sucessfully configured a datasource MySqlDS with  the plugin:

       

      However, when I have tried to configure a security domain (@see configuration below), I have got a deployment error in jboss.

                      <!-- Add a Security domain-->

                      <execution>

                          <id>add-security-domain</id>

                          <phase>install</phase>

                          <configuration>

                              <address>subsystem=security</address>

                              <force>true</force>

                              <resources>

                                  <resource>

                                      <address>security-domain=MySecurityDomain</address>

                                      <enableResource>true</enableResource>

                                      <properties>

                                          <cache-type>default</cache-type>

                                      </properties>

                                      <resources>

                                          <resource>

                                              <address>authentication=[{"code"=>"Database","flag"=>"required","module-options"=>[("dsJndiName"=>"java:jboss/datasources/MySqlDS"),("principalsQuery"=>"select password from app_users where ACTIVE=1 AND EMAIL=?"),("rolesQuery"=>"select group_name, 'Roles' from app_users where EMAIL = ?")]}]</address>

                                          </resource>

                                      </resources>

                                  </resource>

                              </resources>

                          </configuration>

                          <goals>

                              <goal>add-resource</goal>

                          </goals>

                      </execution>

       

      I am wondering what is wrong in my configuration, but I have not figured out.

       

      Please can you be of any help ?

       

      Thanks a lot in advance.