3 Replies Latest reply on Oct 22, 2008 12:36 PM by asoldano

    Enable debug logging

      I'd like to see the HTTP stream for a WS client using JBossWS-native v3.0.3 on JBossAS 4.2.3. I've found this thread:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126403
      which mentions a log4j.properties file in the JAR, but that kinda sucks when I'm using Maven and don't really want to manually edit JARs in my repository.

      I also found this in the server's jboss-log4j.xml file:

       <!-- Enable JBossWS message tracing -->
       <category name="org.jboss.ws.core.MessageTrace">
       <priority value="TRACE"/>
       </category>
      


      However this did not seem to have any effect. I also tried setting "org.jboss.ws" to TRACE but that didn't seem to help either. Any pointers?

      Thanks.


        • 1. Re: Enable debug logging
          peterj

          The jboss-log4j.xml setting should work. When I uncomment it, I see entries like the following in the server.log file:

          2008-09-29 13:45:04,899 TRACE [org.jboss.ws.core.MessageTrace] (http-127.0.0.1-8080-1) Incoming Request Message
          <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
           <env:Header/>
           <env:Body>
           <ns1:getRate xmlns:ns1='http://ws.jbia.org/'>
           <arg0>NH</arg0>
           </ns1:getRate>
           </env:Body>
          </env:Envelope>
          ...
          2008-09-29 13:45:04,914 TRACE [org.jboss.ws.core.MessageTrace] (http-127.0.0.1-8080-1) Outgoing Response Message
          <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
           <env:Header/>
           <env:Body>
           <ns1:getRateResponse xmlns:ns1='http://ws.jbia.org/'>
           <return>0.0</return>
           </ns1:getRateResponse>
           </env:Body>
          </env:Envelope>


          • 2. Re: Enable debug logging

            Is there any way to get logging at the HTTP level? It looks like the server is throwing a nasty exception and it's not even returning a valid SOAP response. So it's not being parsed and I never get the log output. On top of that, the service is over HTTPS so I can't use WireShark to watch the traffic either...

            Thanks again.

            • 3. Re: Enable debug logging
              asoldano

               

              "tomstrummer" wrote:
              Is there any way to get logging at the HTTP level? It looks like the server is throwing a nasty exception and it's not even returning a valid SOAP response. So it's not being parsed and I never get the log output. On top of that, the service is over HTTPS so I can't use WireShark to watch the traffic either...

              Thanks again.


              If an exception is reaised by jbossws you can enable the org.jboss.ws log4j category and you find that for sure in the logs.