[jboss-jira] [JBoss JIRA] Created: (AS7-1969) Attribute pattern of access-log element is removed when deploying applications with XNIO
Knut-Olav Hoven (JIRA)
jira-events at lists.jboss.org
Wed Sep 28 11:52:26 EDT 2011
Attribute pattern of access-log element is removed when deploying applications with XNIO
----------------------------------------------------------------------------------------
Key: AS7-1969
URL: https://issues.jboss.org/browse/AS7-1969
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.0.2.Final
Environment: Ubuntu 10.04, RHEL 5.7
Reporter: Knut-Olav Hoven
Assignee: Remy Maucherat
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:
{code}
<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>
{code}
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:
{code}
<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>
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list