2 Replies Latest reply on Sep 17, 2006 1:58 AM by chrismalan

    Access Loggin

    chrismalan

      I have a web application running on JBoss-4.0.4.GA. It is the ejb3 setup running as all. The OS is CentOS 4 and the JDK is JDK1.5, the latest downloaded about 10 days ago.

      The relevant part in server.xml in JBOSS_HOME/server/all/deploy/jbossweb-tomcat55.sar has been uncommented to generate http request logs.

      The trouble is that the logs look like this:

      69.13.158.140 - - [16/Sep/2006:00:47:21 -0500] "GET /a1b2c3d4e5f6g7h8i9/nonexistentfile.php HTTP/1.0" 404 1069
      69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /adxmlrpc.php HTTP/1.0" 404 991
      69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /adserver/adxmlrpc.php HTTP/1.0" 404 1018
      69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /phpAdsNew/adxmlrpc.php HTTP/1.0" 404 1021
      69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /phpadsnew/adxmlrpc.php HTTP/1.0" 404 1021


      Once in a while there is a log for a page or image which actually exists on the server, like /, with a return code of 200.

      Visits to the site by me and others which I know about are not logged. Just these requests for non-existent pages with return codes of 404.

      Is there any setting to be done which will get Tomcat to log all http requests?

      On my machine at home everything works fine running the same stuff, albeit on a JBoss installed with the installer and running as default.

      I'd appreciate any help.

        • 1. Re: Access Logging
          chrismalan

          I've narrowed it down a bit. When entering the IP address to go to the JBoss Console, all access requests are logged. It must be because of the virtual host created in jboss-web.xml.

          I've looked at the Tomcat Access Log Valve documentation - not a word on virtual hosts or anything else that may help.

          Any ideas?

          • 2. Re: Access Loggin
            chrismalan

            Found the solution in the Wiki pages virtual host how-to. Basically, it consists of a few more entries in server.xml.