IBM Support

ANT task to generate MTDS fails without giving an error

Technote (troubleshooting)


Problem(Abstract)

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

Related information

Creating a MTDS project for RuleApps in V7.1
Creating a MTDS project for RuleApps in V7.5

Cross reference information
Segment Product Component Platform Version Edition
Business Integration IBM Operational Decision Manager General Platform Independent 8.5, 8.0, 7.5

Document information

More support for: WebSphere ILOG JRules
General

Software version: 7.0, 7.1

Operating system(s): Platform Independent

Reference #: 1589438

Modified date: 10 April 2012