2 Replies Latest reply on Aug 21, 2012 2:08 AM by Rob Breault

    Question regarding Tomcat 5.5 within Jboss 5

    Rob Breault Newbie

      I want to add the following to our jboss instance.




      I got this to work as described in Tomcat but would like to apply it to jboss AS 5.0.0


      Any direction would be awesome as we do have a work around using logger and a tail -f but its not the best solution.

        • 1. Re: Question regarding Tomcat 5.5 within Jboss 5
          Jean-Frederic Clere Master

          I don't think that won't work:

          1 - AS5 used JBossWeb based on Tomcat6.

          2 - JBossWeb uses jboss logging.

          • 2. Re: Question regarding Tomcat 5.5 within Jboss 5
            Rob Breault Newbie

            Correct it is using jbossWeb but for the localhost_access_logs its using the catalina.valves class.



                        <!-- Access logger -->


                        <Valve className="org.apache.catalina.valves.AccessLogValve"

                            prefix="access." suffix=".log"

                            pattern='"%{X-Forwarded-For}i" %l %u %t %{Host}i "%r" %s %b "%{Referer}i" "%{User-Agent}i" %D %p' directory="${jboss.server.log.dir}"

                            resolveHosts="false" />


            So in that this log is never touched by the joss logging ( log4j ) it writes a seperate file and is turned off by default.


            The link I posted in how in tomcat 5.5 or tomcat 6 you can add a custom jar file and make a change to the class called here and use log4j to write the logs using syslog. Of course in tomcat 6 its easy to find where the jar file needs to go within the lib directory and a jar file in the bin directory. With jbossweb the tomcat is buried somewhere inside there. If I could figure out which jar has the tomcat jars within it I could extract these and add the custom classes.