8 Replies Latest reply on Feb 20, 2009 12:49 PM by peterj

    how can you trace SOAP messages in JBoss?

    maverickdc

      Hi all,

      i'm using JBoss 4.2.3, and i got this problem.

      I have to trace Web Services request/response messages (SOAP messages), because i need to evaluate some WS performance metrics...as request time, service time, and so on...

      I looked at the server.log file in the JBoss_home/server/default/log folder, but i didn't find any log message when the web service is running...what's wrong? Is it possible to add a new logging functionality to JBoss? And if so, how can i do?

      I hope someone could help me

      Thanks in advance!

      DC

        • 1. Re: how can you trace SOAP messages in JBoss?
          peterj

          Uncomment this entry in the jboss-log4j.xml file:

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



          • 2. Re: how can you trace SOAP messages in JBoss?
            maverickdc

             

            "PeterJ" wrote:
            Uncomment this entry in the jboss-log4j.xml file:

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



            Hi Peter, thanks for your reply.

            But it doesn't work...
            Few days ago, while i was reading the "Jboss starting guide" (par.5.4 "Monitoring webservices requests") i found this entry to add to jboss-log4j.xml:

            <category name="org.jboss.axis.transport.http.AxisServlet">
            <priority value="DEBUG"/>
            </category>


            but i had the same result: no SOAP messages logged to the server.log file.
            I don' know why...

            Tnx for you help.
            DC


            • 3. Re: how can you trace SOAP messages in JBoss?
              wolfgangknauf

              Hi,

              did you check the threshold for the appender "FILE" in "jboss-log4j.xml"?

              I think it is set to INFO, which would ignore TRACE or DEBUG output, no matter how your categories are configured.

              Hope this helps

              Wolfgang

              • 4. Re: how can you trace SOAP messages in JBoss?
                maverickdc

                Hi Wolfgang, thanks for your help.
                unfortunately, it still doesn't work...

                i tryed to set the threshold to TRACE level, and after to DEBUG, but i have no messages in the server.log file...

                Dario

                • 5. Re: how can you trace SOAP messages in JBoss?
                  peterj

                  The Axis-related setting will not work because JBoss AS no longer uses Axis. What version of the Getting Started guide did you look at?

                  Uncommenting the lines I pointed out works for me.

                  • 6. Re: how can you trace SOAP messages in JBoss?
                    peterj

                    I had to first rebuild my web service using 4.2.3, but here are the log entries:

                    console log (system info):

                    08:50:39,952 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=
                    JBoss_4_2_3_GA date=200807181417)
                    ...
                    08:50:40,405 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
                    08:50:40,405 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02
                    ,Sun Microsystems Inc.
                    08:50:40,405 INFO [ServerInfo] OS-System: Windows XP 5.1,x86


                    server.log:
                    2009-02-20 08:52:35,974 TRACE [org.jboss.ws.core.MessageTrace] 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>TX</arg0>
                     </ns1:getRate>
                     </env:Body>
                    </env:Envelope>
                    ...
                    
                    2009-02-20 08:52:35,974 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Response Message
                    <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
                     <env:Header/>
                     <env:Body>
                     <ns2:getRateResponse xmlns:ns2='http://ws.jbia.org/'>
                     <return>-1.0</return>
                     </ns2:getRateResponse>
                     </env:Body>
                    </env:Envelope>


                    • 7. Re: how can you trace SOAP messages in JBoss?
                      maverickdc

                      Hi Peter,
                      the guide is
                      "Getting Started with JBoss 4.0 Release 4"


                      http://docs.jboss.org/jbossas/getting_started/v4/html/[/url]


                      • 8. Re: how can you trace SOAP messages in JBoss?
                        peterj

                        I know that 4.0.2 used Axis, and I think that 4.0.5 no longer uses Axis, but I don't know if 4.0.3 or 4.0.4 made the switch away from Axis.

                        Anyway, if you are using 4.2.3, you should really be reading the 4.2.x documentation.