[jboss-jira] [JBoss JIRA] (WFLY-772) It's not possible to add more global valves through jboss-cli
Jean-Frederic Clere (JIRA)
jira-events at lists.jboss.org
Tue May 14 12:00:07 EDT 2013
[ https://issues.jboss.org/browse/WFLY-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Frederic Clere resolved WFLY-772.
--------------------------------------
Resolution: Done
> It's not possible to add more global valves through jboss-cli
> -------------------------------------------------------------
>
> Key: WFLY-772
> URL: https://issues.jboss.org/browse/WFLY-772
> Project: WildFly
> Issue Type: Bug
> 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