To log HTTP requests and responses with JBoss 7, activate the RequestDumperValve and enable the org.apache.catalina.core.ContainerBase logging category. Here are the relevant excerpts from standalone.xml:

[...]
<subsystem xmlns="urn:jboss:domain:logging:1.3">
  [...]
  <logger category="org.apache.catalina.core.ContainerBase">
    <level name="INFO" />
  </logger>
  [...]
</subsystem>
[...]
<subsystem xmlns="urn:jboss:domain:web:1.5">
  [...]
  <valve name="RequestLogging" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RequestDumperValve"/>
</subsystem>
[...]

References: JBossWeb, Stackoverflow

comments powered by Disqus