0 Replies Latest reply on Feb 13, 2013 6:16 AM by steljboss

    AccessLogValve not logging http requests for .js, .css etc.

    steljboss

      Hi,

       

      I have configured the AccessLogValve & RequestDumperValve [1] in our application's jboss-web.xml to log http & ajp requests arriving on the connectors of JBossWeb. Now I see, requests on .jpg that our application takes from a remote location being logged on the AccessLogValve log but I do not see any requests (neither http nor ajp when going through the load balancer) in the same log for .css or .js that are part of our application.

       

      The web server does log the request for .js/.css

      The load balancer log also records the request for .js/.css

       

      Even stranger when I mistyped the request on my browser for a specific .js (was trying to see where it downloads it from) I see it in

      a) apache log

      b) mod_jk log

      c) accessLogValve log

      d) server.log (I have added the RequestDumperValve by now)

       

      I see the request (RequestDumperValve) and the 404 response about the mistyped resource.

       

      So the request does end up on my server but how come when it succeeds it does not get logged by the AccessLogValve & RequestDumperValve???

       

      Note: I have tried diffent browsers, cleaned history, cache in order to ensure that it is not cached anywhere locally but nothing.

       

      Any thoughts?

       

      Thanks,

      Stelios

       

      [1]

          <valve>
              <class-name>org.apache.catalina.valves.AccessLogValve</class-name>
              <param>
                  <param-name>prefix</param-name>
                  <param-value>sc_Portal_A_http_access_log.</param-value>
              </param>
              <param>
                  <param-name>suffix</param-name>
                  <param-value>.log</param-value>
              </param>
              <param>
                  <param-name>pattern</param-name>
                  <param-value>%h %l %u %t %r %s %b %{User-Agent}i %{JSESSIONID}c</param-value>
                  <param-value>%h %s %I %D %S %U</param-value>
         
              </param>
              <param>
                  <param-name>directory</param-name>
                  <param-value>D:\Portal-A\liferay-portal-jboss-6.1.20-ee-ga2\jboss-7.1.1\standalone\log\host</param-value>
              </param>
          </valve> 
        <class-name>org.apache.catalina.valves.RequestDumperValve</class-name>
          <valve>
       </valve>
      </jboss-web>