Details
-
Bug
-
Resolution: Done
-
Major
-
7.0.2.Final
-
-
Compatibility/Configuration
Description
When redeploying an application over NXIO, the standalone.xml configuration is updated and saved by JBoss AS, and the (undocumented) attribute "pattern" of "access-log" element is removed.
Reproducable:
While JBossAS is not running, I update configuration/standalone.xml with the following subsystem configuration:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host"> <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http" enable-lookups="false" secure="false" max-connections="250" redirect-port="8443"/> <virtual-server name="default-host" enable-welcome-root="true"> <alias name="localhost"/> <access-log pattern='%h %l %u %t "%r" %s %b %D'/> </virtual-server> </subsystem>
The pattern value format is defined by Apache Tomcat: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve
Then, I startup JBoss AS, and the access logs are written to disk using my defined pattern.
I can restart JBoss AS, and it's still writing access logs in this pattern.
However, if I redeploy the application, the configuration file is overwritten by JBoss AS and then contains this in the subsystem. Notice the lack of the pattern attribute:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host"> <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http" enable-lookups="false" secure="false" max-connections="250" redirect-port="8443"/> <virtual-server name="default-host" enable-welcome-root="true"> <alias name="localhost"/> <access-log/> </virtual-server> </subsystem>