IBM Support

ANT task to generate MTDS fails without giving an error

Troubleshooting


Problem

The ANT task to generate Monitored Transparent Decision Services (MTDS) fails without providing an explicit error message. This document explains how to diagnose and fix a failure of this ANT task.

Symptom

The ANT task to generate the MTDS in Eclipse fails, and generates the following output:

Buildfile: C:\Projects\SampleProject\MyService\build.xml
get.tools.jar:
verify.jdk:
clean:
build-server-java:
Trying to override old definition of task apt
   [javac] Compiling 8 source files to C:\Projects\SampleProject\MyService\build\classes
generate.wsdl:
  [delete] Deleting directory C:\Projects\SampleProject\MyService\wsdl
   [mkdir] Created dir: C:\Projects\SampleProject\MyService\wsdl
   [wsgen] command line: wsgen -classpath "..." -d C:\Projects\SampleProject\MyService\wsdl -keep -wsdl -r C:\Projects\SampleProject\MyService\wsdl -s C:\Projects\SampleProject\MyService\wsdl -verbose MyRuleApp.MyServiceRunnerImpl
   [wsgen] Note:  ap round: 1
   [wsgen] [ProcessedMethods Interface: MyRuleApp.MyServiceRunner]
   [wsgen] [should process method: executeMyRules hasWebMethods: false ]
   [wsgen] [endpointReferencesInterface: true]
   [wsgen] [declaring class has WebSevice: true]
   [wsgen] [returning: true]
   [wsgen] [WrapperGen - method: executeMyRules(MyRuleApp.MyRulesRequest)]
   [wsgen] [method.getDeclaringType(): MyRuleApp.MyServiceRunner]
   [wsgen] [ProcessedMethods Interface: java.io.Serializable]
   [wsgen] MyRuleApp\jaxws\RulesetExecutionExceptionBean.java
   [wsgen] Note:  ap round: 2
BUILD FAILED
C:\Projects\SampleProject\MyService\build.xml:95: Error starting wsgen:
Total time: 4 seconds

Cause

The script absorbs the exception causing the issue.

Diagnosing The Problem

When running the command from Eclipse, add the -debug argument to the ANT task command:




To add the -debug argument to the MTDS ANT task:
  1. In Rule Studio (Eclipse), on the Run menu, click External Tools > External Tools Configurations.
  2. In the side pane, under Ant Build, select the configuration that you used to execute the script.
  3. In the "Arguments" section, enter the -debug argument, as shown on the above screenshot, and click Apply.

The next time you run the script from this configuration, the ANT output will show the error causing the command to fail.

Resolving The Problem

Fix the issue based on the exception shown when the ANT task is run with the -debug parameter

[{"Product":{"code":"SS6MTS","label":"WebSphere ILOG JRules"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5;8.0;7.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21589438