[Version 5.0.2 and later]Tracing Web services components based on Web Services for J2EE

Why and when to perform this task

The following are tasks in which you can enable trace for Web services that are developed and implemented based on the Web Services for Java 2 platform, Enterprise Edition (J2EE) specification.

Steps for this task

  1. Enable trace for a Web services unmanaged client.
    1. Create a trace properties file by copying %install_root%\WebSphere\AppServer\properties\TraceSettings.properties file to the same directory as your client application Java archive (JAR) file.
    2. Edit the properties file and change the value of traceFileName to output the trace data.
      For example, traceFileName=c:\\temp\\myAppClient.trc.
    3. Edit the properties file to remove com.ibm.ejs.ras.*=all=enabled and add com.ibm.ws.webservices.*=all=enabled.
    4. Add the option -DtraceSettingsFile=<trace_properties_file> to the Java command- line used to run the client, where trace_properties_file represents the name of the properties file created in steps 1-2.
      For example, java -DtraceSettingsFile=TraceSettings.properties myApp.myAppMainClass.
  2. Enable trace for a Web services managed client.
    1. Invoke the launchClient command-line tool with the following options:
      -CCtrace=com.ibm.ws.webservices.*=all=enabled-CCtracefile=traceFileName
      For example:

      %install_root%\bin\launchClient MyAppClient.ear-CCtrace=com.ibm.ws.webservices.*=all=enabled -CCtracefile=myAppClient.trc

    See launchClient tool for more information.
  3. Enable trace for a Web Services for J2EE server application.
    1. Start WebSphere Application Server.
    2. Open the administrative console.
    1. Click Servers >Application Servers > server.
    1. Click Diagnostic Trace Service.
    1. In the Trace Specification field, delete the text *=all=enabled and add com.ibm.ws.webservices.*=all=enabled.
    2. Click Save and Apply.
    For more information see Enabling trace.

Related tasks
Troubleshooting Web services based on Web Services for J2EE
Tracing SOAP messages
Related reference
Troubleshooting the run time of Web services based on Web Services for J2EE



Searchable topic ID:   twbs_tracewbscomp
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/twbs_tracewbscomp.html

Library | Support | Terms of Use | Feedback