I can create an EAR file successfully on my local machine using:
ant.taskdef(name: "serviceDeploy", classname:"com.ibm.websphere.ant.tasks.ServiceDeployTask") {
classpath {
fileset(dir: "wasHome/plugins", includes "com.ibm.soacore.runtime.jar")
}
}
ant.serviceDeploy(...)
However, when my Gradle script is run from Jenkins, I see:
java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
...
Caused by: java.lang.ClassNotFoundException: org.apache.xml.serialize.OutputFormat
In my dependencies block, I’ve declared the dependency for the xercesImpl jar, and when I print the classpath for dependencies, I can see the xercesImpl jar. How can I determine the exact error and the solution for this problem?