Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1969

Attribute pattern of access-log element is removed when deploying applications with XNIO

    XMLWordPrintable

Details

    • Hide

      While JBossAS is not running, I update configuration/standalone.xml and includes a pattern attribute on the access-log element.
      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 the pattern attribute is gone.

      Show
      While JBossAS is not running, I update configuration/standalone.xml and includes a pattern attribute on the access-log element. 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 the pattern attribute is gone.
    • 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>
      

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            hovenko_jira Knut-Olav Hoven (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: