Troubleshooting
Problem
Collecting data for problems with the IBM WebSphere Application Server for ws_ant problems. Gathering this MustGather information before calling IBM support will help you understand the problem and save time analyzing the data.
Resolving The Problem
ws_ant specific MustGather information
IBM supports the Application Server ant task commands from the com.ibm.websphere.ant.tasks package. For more detailed information about Ant issues, refer to the Apache organization Web site.
Simplify the ANT build script by creating a new build.xml with only the command that fails. Since most ANT scripts run wsadmin, you should enable wsadmin tracing as well. Also, server side tracing may be beneficial as well:
- If your wsadmin script (Java™ Command Language (JACL), JavaScript or Jython) fails to work:
- Determine the exact command that fails in your script and create a simple script example.
- Stop all servers and clear the entire log directory for each server. The log directory for each server can be found in the following location for each profile:
profile_root/{profile_name}/logs/
- Enable tracing in wsadmin:
- Modify the wsadmin.properties file located in the following directory:
install_root/profiles/profile_name/properties/
- Uncomment the following line by removing the "#":
com.ibm.ws.scripting.traceString=com.ibm.*=all=enabled
- If wsadmin connects to a server process, enable tracing on that server.
- Set trace string on the deployment manager in network deployment environment or on server1 in a base/express environment. If the trace is set in the configuration tab as a startup trace, a restart will be required, if the trace string is set in the runtime tab, there will be no need for a restart of the server. Trace string should include the following:
'Admin=all'
- Make sure the trace output Maximum File Size limit is large (20 MB recommended) and the Maximum Number of Historical Files is greater than 5.
For additional information on enabling tracing, see the following technote: Setting up a trace.
- Run your script with the "-debug" and "-logfile" options. The following is an example command:
WAS_PROFILE/bin/ws_ant –f <build file> -version -diagnostics -verbose -debug -logfile <filename>
- Collect the following files to send to IBM support:
- build.xml
- Run the Collector Tool. See the appropriate Information Center for additional information on running the Collector Tool.
- Open a PMR with IBM by performing one of the following:
- Call 800-IBM-SERV or country support.
- Open a PMR electronically.
- Send the diagnostic information to IBM support, using the instructions in this technote: Exchanging information with IBM Technical Support for problem determination.
For a listing of all technotes, downloads, and educational materials specific to ws_ant, search the WebSphere Application Server support site.
Related Information
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21196231