]
Kabir Khan updated WFLY-772:
----------------------------
Fix Version/s: 8.0.0.Final
I am bulk closing old issues that were resolved with no fix version. There are quite many
of these. From the lastModified date of this issue it looks like it was done for
8.0.0.Final (I am not caring about alpha/beta etc. for this exercise). If that is
incorrect please adjust as needed.
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: Ondra Chaloupka
Assignee: Jean-Frederic Clere
Fix For: 8.0.0.Final
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.