Tracing Web services components based on Web Services for J2EE
The following are tasks in which you can enable trace for Web services that are developed and implemented based on the Web Services for J2EE specification.
- Enable trace for a Web services unmanaged client.
- Create a trace properties file by copying %$WAS_HOME%\WebSphere\AppServer\properties\TraceSettings.properties file to the same directory as your client application JAR file.
- Edit the properties file and change the value of traceFileName to output the trace data.For example, traceFileName=c:\\temp\\myAppClient.trc.
- Edit the properties file to remove com.ibm.ejs.ras.*=all=enabled and add com.ibm.ws.webservices.*=all=enabled.
- 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.
- Enable trace for a Web services managed client.
- Invoke the launchClient command-line tool with the following options:-CCtrace=com.ibm.ws.webservices.*=all=enabled-CCtracefile=traceFileName For example...
%$WAS_HOME%\bin\launchClient MyAppClient.ear-CCtrace=com.ibm.ws.webservices.*=all=enabled -CCtracefile=myAppClient.trc
See launchClient tool for more information.
- Enable trace for a Web Services for J2EE server application.
- Start WAS.
- Open the administrative console.
- Click Servers >Application Servers > server.
- Click Diagnostic Trace Service.
- In the Trace Specification field, delete the text *=all=enabled and add com.ibm.ws.webservices.*=all=enabled.
- Click Save and Apply.
For more information see Enabling trace.
See AlsoTroubleshooting Web services based on Web Services for J2EE
Tracing SOAP messages
Troubleshooting the run time of Web services based on Web Services for J2EE