[jboss-jira] [JBoss JIRA] (AS7-6276) It's not possible to add more global valves through jboss-cli

Jean-Frederic Clere (JIRA) jira-events at lists.jboss.org
Mon Jan 7 03:35:08 EST 2013


    [ https://issues.jboss.org/browse/AS7-6276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743702#comment-12743702 ] 

Jean-Frederic Clere commented on AS7-6276:
------------------------------------------

Fixed by #3803
                
> It's not possible to add more global valves through jboss-cli
> -------------------------------------------------------------
>
>                 Key: AS7-6276
>                 URL: https://issues.jboss.org/browse/AS7-6276
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web
>    Affects Versions: 7.2.0.Alpha1
>            Reporter: Ondřej Chaloupka
>            Assignee: Jean-Frederic Clere
>
> I wanted to add 2 global valves to web subsystem but it's not possible because the commands produces invalid xml file.
> When you run:
> /subsystem=web/valve=myvalve:add(class-name=org.apache.catalina.valves.RemoteAddrValve,module=org.jboss.as.web,enabled=true)
> /subsystem=web/valve=myvalve2:add(class-name=org.apache.catalina.valves.RemoteAddrValve,module=org.jboss.as.web,enabled=true)
> /:reload
> The reload fails and the xml output saved in standalone.xml file is following:
> {code}
> <valve name="myvalve" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteAddrValve" enabled="true">
>   <valve name="myvalve2" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteAddrValve" enabled="true"/>
> </valve>
> {code}
> When I define 2 valves manually to XML file like:
> {code}
> <valve name="myvalve" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteAddrValve" enabled="true" />
> <valve name="myvalve2" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteAddrValve" enabled="true" />
> {code}
> then everything works fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list