My Oracle Support Banner

WLW 8.1 SP1 - clientgen fails to generate a proxy for a Workshop doc/literal webservice using XMLBeans - CR129314 (Doc ID 774410.1)

Last updated on MARCH 09, 2019

Applies to:

Oracle Workshop for Weblogic - Version 9.1 and later
Information in this document applies to any platform.
Information in this document applies to any platform


Goal

You will notice lots of compilation errors when clientgen is run against a WSDL that uses XMLBeans. Sample errors:

[clientgen] Generating client jar for HelperContract.wsdl ...
[clientgen] C:\DOCUME~1\rvimala\LOCALS~1\Temp\client.jar1437245866\net\gmc\test\docfactory\doc\create\req\Msg.java:15:
cannot resolve symbol
[clientgen] symbol : class ComPrintServiceMsg
[clientgen] location: package req
[clientgen] extends net.gmc.test.docfactory.doc.create.req.ComPrintServiceMsg
[clientgen] ^
[clientgen]
C:\DOCUME~1\rvimala\LOCALS~1\Temp\client.jar1437245866\net\gmc\test\docfactory\doc\create\req\MsgCodec.java:15: cannot
resolve symbol
[clientgen] symbol : class ComPrintServiceMsgCodec
[clientgen] location: package soap
[clientgen] extends javax.xml.soap.ComPrintServiceMsgCodec
[clientgen] ^
[clientgen]
C:\DOCUME~1\rvimala\LOCALS~1\Temp\client.jar1437245866\net\gmc\test\docfactory\doc\create\req\MsgCodec.java:140:
cannot resolve symbol
[clientgen] symbol : variable super
[clientgen] location: class net.gmc.test.docfactory.doc.create.req.MsgCodec
[clientgen] if (idx < _SUPER_PROP_COUNT) return super.getPropertyInfo(idx);
[clientgen] ^
[clientgen] 10 errors
[clientgen] java.io.IOException: Compiler failed executable.exec
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:561)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile_descriptors(Compiler.java:372)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:282)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.addTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.processSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTypeMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WSDL2JavaImpl.java:192)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTypeMappingFromWSDL(ClientGenImpl.java:707)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:403)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:343)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
[clientgen] --------------- nested within: ------------------
[clientgen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[clientgen] [java.io.IOException: Compiler failed executable.exec]
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:567)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile_descriptors(Compiler.java:372)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:282)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.addTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.processSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTypeMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WSDL2JavaImpl.java:192)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTypeMappingFromWSDL(ClientGenImpl.java:707)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:403)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:343)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)

BUILD FAILED
file:E:/wls8.1sp2load7/weblogic81/samples/domains/mydomain/clientclasses/clientgen/test/build.xml:10:
weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: ERROR: during code compilation -with nested exception:
[java.io.IOException: Compiler failed executable.exec]]

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.