Ant taskdef jwsc/wsdlc/clientgen to Gradle Migration

I am new to Gradle and am trying to migrate components from Ant to Gradle 6.0. I ran into the following tags stopping.


<taskdef name='wsdlc' classname='weblogic.wsee.tools.anttasks.WsdlcTask'>
    <classpath refid='all_libraries'/>
</taskdef>

<taskdef name='clientgen' classname='weblogic.wsee.tools.anttasks.ClientGenTask'>
    <classpath refid='all_libraries'/>
</taskdef>

<target name='generate_bss_eai_stubs'>
	<wsdlc srcWsdl='wsdl/X2YServices.wsdl' destJwsDir='jar_jws'
           destImplDir='${source_dir}' packageName='prova.webservice'/>
</target>

<target name='build_war'>
    <mkdir dir='${war_dir}'/>
    <jwsc srcdir='${source_dir}' destdir='${war_dir}' classpathref='all_libraries'>
        <jws file='prova/webservice/X2YServicesImpl.java'
             compiledWsdl='jar_jws/X2YServices_wsdl.jar'/>
    </jwsc>
....
</target>

Could anyones help me?

Thanks a lot

You can call ant from Gradle, try reading through the Gradle Ant documentation and apply it to your build and come back with further questions

Hi,
you are right. I tried using it and I write the following build gradle

configurations {
  antJwsc
  jwsc
}

repositories {
    mavenCentral()
}

dependencies {
  antJwsc 'com.oracle.weblogic:weblogic-maven-plugin:12.1.3-0-0'
}

task prova {
    doLast {
        ant.taskdef(name: 'jwsc',
                    classname: 'weblogic.wsee.tools.anttasks.JwscTask',
                    classpath:  configurations.antJwsc.asPath)
        ant.jwsc (
    		srcdir : '${source_dir}',
    		destdir : '${war_dir}',
    		debug : 'true',
    		classpath : configurations.jwsc.asPath{
				module (name : 'warname') {
				jws file: 'prova/webservice/X2YServicesImpl.java.java'
				descriptor file: 'WebContent/WEB-INF/web.xml'
				descriptor file: 'WebContent/WEB-INF/weblogic.xml'
				}
			}
  		)
    }
}

but it does not work. the dependency is not good. It seems that the jar is not correct. Do you have any suggestion?

It seems that the dependency you are attempting to use doesn’t contain the ant task in it. It looks like you’re using a maven plugin rather than an ant plugin.

How do you add the ant task to the classpath in your ant build? Have you added a weblogic jar to $ANT_HOME/lib?

You can use the following script to run through the jars looking for the ant task. I’m guessing all the jars report found = false

def findMe = 'weblogic/wsee/tools/anttasks/JwscTask.class'
configurations.jwsc.each { file ->
   def paths = [] as Set
   zipTree(file).visit { fvd ->
      paths << fvd.path
   }
   def found = paths.contains(findMe)
   println "Found $findMe in $file = $found" 
}

It seems that the dependency you are attempting to use doesn’t contain the ant task in it. It looks like you’re using a maven plugin rather than an ant plugin.
You’re right, I tried to use the plugin as maven as it is my first experience with Gradle and it seemed closer to Maven than to ANT

How do you add the ant task to the classpath in your ant build? Have you added a weblogic jar to $ANT_HOME/lib?
I already have the weblogic jars (weblogic.jar, webserviceclient.jar, webservices.jar) inside the ANT lib but I would like to understand which specific jars I need to punt into the gradle dependency in order to run the JWSC task.

You can use the following script to run through the jars looking for the ant task. I’m guessing all the jars report found = false.
I dont’ have results, neither positive nor negative running the script reported below

You could put weblogic.jar, webserviceclient.jar, webservices.jar in $projectDir/lib directory then do.

dependencies {
  antJwsc fileTree('lib')
}

It seems to have unlocked that step but I caught another mistake

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\webservice\build.gradle’ line: 95

  • What went wrong:
    Execution failed for task ‘:prova’.

Could not find method asPath() for arguments [build_7uaczx29ubeumwahgj7bgyhpw$_run_closure8$_closure16$_closure17@512a7ba7] on configuration ‘:jwsc’ of type org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:prova’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)

the build gradle draft is
…
task prova {
doLast {
ant.taskdef(name: ‘jwsc’,
classname: ‘weblogic.wsee.tools.anttasks.JwscTask’,
classpath: configurations.antJwsc.asPath)
ant.jwsc (
srcdir : ‘${source_dir}’,
destdir : ‘${war_dir}’,
debug : ‘true’,
classpath : configurations.jwsc.asPath{ /this is 95 Line/
module (name : ‘warname’) {
jws file: ‘prova/webservice/X2YServicesImpl.java’
//type: ‘JAXWS’
descriptor file: ‘WebContent/WEB-INF/web.xml’
descriptor file: ‘WebContent/WEB-INF/weblogic.xml’
}
}
)
}
}
…
Am I wrong in something?

You’ve accidentally put “{” where it should be “)”

You want

ant.taskdef(
   name: 'jwsc',
   ... 
   classpath :configurations.jwsc.asPath
) 

Instead of

ant.taskdef(
   name: 'jwsc',
   ... 
   classpath :configurations.jwsc.asPath
{

You are right. I change it. Sorry for my mistake.
I run the gradle script and I catch this one error

Task :checkJwsc FAILED
[ant:jwsc] warning: ‘includeantruntime’ was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\workspaceTeliaSweden\cli_default_repository\eai_bss\bss_eai_webservice\build.gradle’ line: 109

  • What went wrong:
    Execution failed for task ‘:checkJwsc’.

Could not find method module() for arguments [{name=warname}, build_7uaczx29ubeumwahgj7bgyhpw$_run_closure7$_closure15$_closure16@75780fd8] on task ‘:checkJwsc’ of type org.gradle.api.DefaultTask.

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:checkJwsc’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)

What do you mean? Am I wrong anything else?

the build gradle draft is the following
…
task checkJwsc {
doLast {
ant.taskdef(name: ‘jwsc’,
classname: ‘weblogic.wsee.tools.anttasks.JwscTask’,
classpath: configurations.antJwsc.asPath)
ant.jwsc (
srcdir : ‘src’,
destdir : ‘war_dir’,
debug : ‘true’,
classpath : configurations.jwsc.asPath)
module (name : ‘warname’) {
jws file: ‘/webservice/X2YServicesImpl.java’
descriptor file: ‘WebContent/WEB-INF/web.xml’
descriptor file: ‘WebContent/WEB-INF/weblogic.xml’
}
}
}
…

Do you have also any info about the following task

<taskdef name='wsdlc' classname='weblogic.wsee.tools.anttasks.WsdlcTask'>
    <classpath refid='all_libraries'/>
</taskdef>

Thanks a lot

I’m guessing that you want

ant.jwsc (
   srcdir : ‘src’,
   ..., 
   classpath : configurations.jwsc.asPath
) {
   module (name : ‘warname’) {...} 
   ... 
} 

Good Thanks a lot @Lance.
Do you have any suggestion about

I migrate it into the following task

task checkWsldc {
doLast {
ant.taskdef(name: ‘wsdlc’,
classname: ‘weblogic.wsee.tools.anttasks.WsdlcTask’,
classpath: configurations.antWsdlc.asPath)
ant.jwsc (
srcWsdl=‘src/wsdl/X2YServices.wsdl’
destJwsDir=‘jar_jws’
destImplDir=‘src/checkWsldc’
packageName=‘prova.webservice’
classpath : configurations.wsdlc.asPath)
}
}

I catch the following error
Execution failed for task ‘:checkWsldc’.

Could not find method prova.webservice() for arguments [{classpath=}] on task ‘:checkWsldc’ of type org.gradle.api.DefaultTask.

For sure I am wrong something. What do you mean?

Thanks a lot

ant.jwsc (
srcWsdl='src/wsdl/X2YServices.wsdl' 
destJwsDir='jar_jwsv
destImplDir='src/checkWsldc' 
packageName='prova.webservice' 
... 

Should be

ant.jwsc (
srcWsdl:‘src/wsdl/X2YServices.wsdl’, 
destJwsDir:'jar_jws’, 
destImplDir:‘src/checkWsldc’, 
packageName:‘prova.webservice’, 
... 

Please read the Gradle Ant docs again

Yes, you are right and sorry for the disturb.

task checkJwsc {
doLast {
ant.taskdef(name: ‘jwsc’,
classname: ‘weblogic.wsee.tools.anttasks.JwscTask’,
classpath: configurations.antJwsc.asPath)
ant.jwsc (
srcdir : ‘src’,
destdir : ‘war_dir’,
debug : ‘true’,
classpath : configurations.jwsc.asPath)
{
module (name : ‘warname’) {
jws file: ‘webservice/X2YServicesImpl.java’
compiledWsdl=‘jar_jws/X2YServices_wsdl.jar’
descriptor file: ‘config/web.xml’
descriptor file: ‘config/weblogic.xml’
}
}
}
}

After the gradle checkJwsc --stacktrace
I catch the following error

  • What went wrong:
    Execution failed for task ‘:checkJwsc’.

weblogic.wsee.tools.WsBuildException: JWS build failed.

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:checkJwsc’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)

I’m afraid I’m quitting my role as your compiler

1 Like

Hi,
I added the antJwsc configuration
configurations {
antJwsc
jwsc
}
to make the checkJwsc task

task checkJwsc {
doLast {
ant.taskdef(name: ‘jwsc’,
classname: ‘weblogic.wsee.tools.anttasks.JwscTask’,
classpath: configurations.antJwsc.asPath)
ant.jwsc (
srcdir : ‘src’,
destdir : ‘lib’,
debug : ‘true’,
classpath : configurations.jwsc.asPath)
{
module (name: ‘x2y_webservice’) {
jws file: ‘webservice/X2YServicesImpl.java’,
compiledWsdl: ‘jar_jws/X2YServices_wsdl.jar’
}
}
}
}

I would like to try to add in the dependencies a set of jars contained in different folders as follows
dependencies {
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib’) { include ‘.jar’ }
antJwsc fileTree(dir: thirdpartyLibDir + ‘/EAI/18_1_449’) { include '
.jar’ }
antJwsc fileTree(dir: thirdpartyLibDir + ‘/bea/lib/12_1_3’) { include ‘wlfullclient.jar’}
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib’) { include ‘*.jar’ }
antJwsc fileTree(dir: commonLibDir+ ‘/library/eai_common.jar’)
antJwsc fileTree(dir: commonLibDir+ ‘/library/nso_eai_client.jar’)
}
but it doesn’t seem to work. Looks like I need to add the jars one at a time as below

dependencies {
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/apache_xbean.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/weblogic.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/xbean.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/bea/lib/12_1_3/wlfullclient.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/webserviceclient.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/webservices.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/webserviceclient+ssl.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/ant.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/jsafe.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/beawebservices/lib/weblogic-container-binding.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/commons-codec-1.6.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/commons-logging-1.1.1.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/fluent-hc-4.2.1.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/httpclient-4.2.1.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/httpclient-cache-4.2.1.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/httpcore-4.2.1.jar’)
antJwsc fileTree(dir: thirdpartyLibDir + ‘/apache/lib/httpcomponents-client-4.2.1/lib/httpmime-4.2.1.jar’)
antJwsc fileTree(dir: commonLibDir+ ‘/library/eai_common.jar’)
antJwsc fileTree(dir: commonLibDir+ ‘/library/nso_eai_client.jar’)
}
Is it possible to add several folders?

Thanks a lot

Half the time you are passing a directory into Project.fileTree(...) and the other half you are passing a single jar file. You want to use Project.files(...) for individual files.

Eg:

ext {
   dir1 = 'path/to/dir1'
   dir2 = 'path/to/dir2' 
}
dependencies {
   antJwsc fileTree("$dir1/lib") { include '*.jar' } 
   antJwsc files("$dir2/jar1.jar", "$dir2/jar2.jar")
   antJwsc files("$dir2/jar3.jar")
} 

See Project.files(…)

Hello Lance,
I have below jwsc task and getting exception. Kindly help me.

task calljwsc {
doLast{
ant.taskdef (name : ‘jwsc’,
classname : ‘weblogic.wsee.tools.anttasks.JwscTask’,
classpath : configurations.compile.asPath
)

	ant.jwsc (
		srcdir : './src',
		destdir : "ObEAR",
		deprecation : 'true',
		classpath: configurations.compile.asPath) {
			module (name : 'ob') {
				fileset(dir: 'com/abc/ob/service') {          
					include(name: 'ObImpl.java')    
                }
                zipfileset(prefix: 'WEB-INF/lib', dir: 'lib/HpvWrapperLib')
                zipfileset(prefix: 'WEB-INF/lib', dir: 'lib/dynamic') {
                    include(name: 'ob.jar')
                }
                zipfileset(prefix: 'WEB-INF/lib', dir: 'lib/dynamic') {
					include(name: 'dao.jar')
                }
                descriptor file: 'weblogic.xml'
        	}
        	
			
		}
}

}

Exception trace:

  • What went wrong:
    Execution failed for task ‘:calljwsc’.

java.lang.IncompatibleClassChangeError: Implementing class

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:calljwsc’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:163)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:156)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
    at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
    at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
    …
    …
    …
    … 128 more

Caused by: java.lang.IncompatibleClassChangeError: Implementing class
at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1150)
at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1318)
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1335)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1090)
at weblogic.management.provider.internal.DescriptorManagerHelper.isProductionMode(DescriptorManagerHelper.java:57)
at weblogic.application.descriptor.AbstractDescriptorLoader2$READONLY_SINGLETON.(AbstractDescriptorLoader2.java:331)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorManager(AbstractDescriptorLoader2.java:337)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:817)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:413)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:779)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:792)
at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:171)
at weblogic.wsee.util.DescriptorBeanUtil.loadWebLogicBean(DescriptorBeanUtil.java:85)
at weblogic.wsee.util.DescriptorBeanUtil.loadWebDescriptor(DescriptorBeanUtil.java:59)
at weblogic.wsee.util.DescriptorBeanUtil.loadWebDescriptor(DescriptorBeanUtil.java:50)
at weblogic.wsee.tools.jws.build.JwsCompiler.addDescriptor(JwsCompiler.java:236)
at weblogic.wsee.tools.anttasks.JwsModule.initialize(JwsModule.java:372)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:302)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:242)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
… 181 more

1 Like

I have wsdlc task have issue:

doLast {
ant {
//sourceSets.main.output.classesDirs.inits()
destDir.mkdirs()
taskdef(name: ‘wsdlc’,
classname: ‘weblogic.wsee.tools.anttasks.WsdlcTask’,
classpath: configurations.compile.asPath
)

        ant.jwsc (
		srcWsdl='src/com/abc/ob/wsdl/ob.wsdl',
		destJwsDir='src',
		destImplDir='src',
		packageName='com.abc.ob.service',
		classpath : configurations.compile.asPath
		)		          
    }

}

Throwing the below error:

  • What went wrong:
    Execution failed for task ‘:obfWsdl’.

No signature of method: org.gradle.api.internal.project.DefaultAntBuilder.jwsc() is applicable for argument types: (LinkedHashMap, String, String, String, String) values: [[classpath:\ob\projects\lib\dynamic\cfcore.ob.xmlbean.jar;…\ob\projects\lib\dynamic\common.jar;…

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:obfWsdl’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:163)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:156)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
    at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
    at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
    Caused by: groovy.lang.MissingMethodException: No signature of method: org.gradle.api.internal.project.DefaultAntBuilder.jwsc() is applicable for argument types: (LinkedHashMap, String, String, String, String) values:
        ant.jwsc (
		srcWsdl='src/com/abc/ob/wsdl/ob.wsdl',
		destJwsDir='src',
		destImplDir='src',
		packageName='com.abc.ob.service',

Try swapping = for :