]
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: