2 Replies Latest reply on Nov 25, 2003 10:13 AM by Gloria Lin

    How to turn on debug for AXIS in JBoss?

    Gloria Lin Newbie

      Hi,

      I'm using JBoss 3.2.2 with Tomcat 4.1.27. AXIS is wrapped as jboss.net. When I start JBoss as "all", AXIS is deployed as service, however, there is no logging information at all for AXIS -- there are loggings for jboss.net, but not from lower level AXIS.

      I tried to turn on the debug by adding a category in <JBOSS_HOME>/server/all/conf/log4j.xml for org.apache.axis like this:





      It didn't work. So I continued to remove log4j.properties file from axis.jar under jboss-net.sar.

      I still didn't see any log information. Finally, I dropped a copy of log4j.properties file into jboss-net.sar as well as under jboss-net.sar/jboss-net.war/WEB-INF.

      All the efforts are in vain.

      How can I turn on debug for AXIS in JBoss?

      Thanks!

      Gloria

        • 1. Re: How to turn on debug for AXIS in JBoss?
          Jon Barnett Master

          Did you try setting the threshold for the appender to DEBUG or TRACE?

          e.g.

          <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
           <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
           <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
           <param name="Append" value="false"/>
           <param name="Threshold" value="DEBUG"/>
          

          Otherwise I think the main threshold takes precedence - at least that is what occurs in JBoss 3.2.2 with Plain Old Axis. The output is quite verbose so you may want to filter by category extensively. I give you the tail of the output.
          2003-11-22 12:21:21,677 DEBUG [org.apache.axis.transport.http.AxisServlet] Response sent.
          2003-11-22 12:21:21,677 DEBUG [org.apache.axis.transport.http.AxisServlet] Exit: doPost()
          2003-11-22 12:21:21,677 DEBUG [org.apache.axis.TIME] axisServlet.doPost: "" pre=1 invoke=67 post=6 send=2 ContactService.getContacts


          • 2. Re: How to turn on debug for AXIS in JBoss?
            Gloria Lin Newbie

            That's it!

            Thanks a lot!

            Gloria