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:
- In Rule Studio (Eclipse), on the Run menu, click External Tools > External Tools Configurations.
- In the side pane, under Ant Build, select the configuration that you used to execute the script.
- 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
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21589438