[jboss-user] How to create an audit section inside a security-domain using Jboss as Maven Plugin

Gustavo Henrique Orair gustavo.orair at gmail.com
Fri Apr 19 18:31:43 EDT 2013


I am trying to create a security domain using Jboss as Maven plugin:
I want to declare an audit provider-module inside the security domain.

I tried the following execution on maven:

                    <execution>
                        <id>PAEPolicy</id>
                        <phase>package</phase>
                        <goals><goal>add-resource</goal></goals>
                        <configuration>
                            <address>subsystem=security</address>
                            <force>true</force>
                            <resources>
                                <resource>

<address>security-domain=MyApplicationPAE</address>
                                    <properties>
                                        <cache-type>default</cache-type>
                                    </properties>
                                    <resources>
                                        <resource>

<address>authentication=classic</address>
                                            <properties>

<login-modules>!![{"code"=>"br.jus.tst.security.TSTLoginModule","flag"=>"required","module-options"=>[
                                                    ("debug"=>"true"),
                                                    ("dburl"=>""),
                                                    ("schema"=>"PSSL"),
                                                    ("system"=>"PE"),
                                                    ("jboss"=>"true")]}]
                                                </login-modules>
                                            </properties>
                                        </resource>
                                        <resource>
                                            <address>audit</address>
                                            <properties>

<provider-modules>!![{"code"=>"br.jus.tst.security.TSTLoginModule","flag"=>"required","module-options"=>[
                                                    ("debug"=>"true"),
                                                    ("dburl"=>""),
                                                    ("schema"=>"PSSL"),
                                                    ("system"=>"PE"),

("jboss"=>"true")]}]</provider-modules>
                                            </properties>
                                        </resource>
                                    </resources>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                    <execution>

The execution failed and showed the message:
[ERROR] Failed to execute goal
org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:add-resource
(PAEPolicy) on project jboss-as-7.1.1.Final: Could not execute goal
add-resource. Reason: audit is not a valid address segment -> [Help 1]

May someone explain me how to do this?


---------------------------------------------------------------------------------------------------------------------
                               Gustavo Henrique Orair
 Mestre em Ciência da Computação - MSc in Computer Science
                                    Universidade Federal de Minas Gerais
               Celular/Cell phone:  55-61-83209196
------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130419/7659d060/attachment.html 


More information about the jboss-user mailing list