• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error generating proxy using clientgen  RSS feed

 
Anoop Nair
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

Am getting the following error when trying to generate the java proxy for a webservice using the clientgen ant task...




generate-client:
[clientgen] Generating client jar for http://localhost:7001/Services/Hello/Hello.jws?WSDL ...
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:15: package weblogic.xml.schema.binding does not exist
[clientgen] extends weblogic.xml.schema.binding.BeanCodecBase
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:28: package weblogic.xml.schema.binding.util.runtime does not exist
[clientgen] private static final weblogic.xml.schema.binding.util.runtime.PropertyInfo[] PROPS =
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:93: package weblogic.xml.schema.binding.util.runtime does not exist
[clientgen] public weblogic.xml.schema.binding.util.runtime.PropertyInfo getPropertyInfo(int idx)
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:138: package weblogic.xml.schema.binding does not exist
[clientgen] protected weblogic.xml.schema.binding.ModelGroupCompositor getCompositor() {
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:146: package weblogic.xml.schema.binding does not exist
[clientgen] protected boolean writeXsiType(weblogic.xml.schema.binding.SerializationContext context) {
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\holders\SayHelloHolder.java:13: package weblogic.xml.schema.binding does not exist
[clientgen] implements weblogic.xml.schema.binding.Holder
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:15: package weblogic.xml.schema.binding does not exist
[clientgen] extends weblogic.xml.schema.binding.BeanCodecBase
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:28: package weblogic.xml.schema.binding.util.runtime does not exist
[clientgen] private static final weblogic.xml.schema.binding.util.runtime.PropertyInfo[] PROPS =
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:93: package weblogic.xml.schema.binding.util.runtime does not exist
[clientgen] public weblogic.xml.schema.binding.util.runtime.PropertyInfo getPropertyInfo(int idx)
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:138: package weblogic.xml.schema.binding does not exist
[clientgen] protected weblogic.xml.schema.binding.ModelGroupCompositor getCompositor() {
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:146: package weblogic.xml.schema.binding does not exist
[clientgen] protected boolean writeXsiType(weblogic.xml.schema.binding.SerializationContext context) {
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\holders\SayHelloResponseHolder.java:13: package weblogic.xml.schema.binding does not exist
[clientgen] implements weblogic.xml.schema.binding.Holder
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:37: package weblogic.xml.schema.binding.util.runtime does not exist
[clientgen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("http://www.openuri.org/","name",null),
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloCodec.java:139: package weblogic.xml.schema.binding does not exist
[clientgen] return weblogic.xml.schema.binding.ModelGroupCompositor.SEQUENCE ;
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:37: package weblogic.xml.schema.binding.util.runtime does not exist
[clientgen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("http://www.openuri.org/","sayHelloResult",null),
[clientgen] ^
[clientgen] C:\DOCUME~1\naira1\LOCALS~1\Temp\Hello.jar-349552620\org\openuri\www\SayHelloResponseCodec.java:139: package weblogic.xml.schema.binding does not exist
[clientgen] return weblogic.xml.schema.binding.ModelGroupCompositor.SEQUENCE ;
[clientgen] ^
[clientgen] 16 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:328)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:564)
[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:240)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTypeMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
[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:570)
[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:240)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTypeMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
[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:C:/Anoop/Docs/build.xml:13: 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]]

Total time: 2 seconds
 
Anoop Nair
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This problem has been resolved.
There was no problem with the ant task...

The problem was with the way I was running the setEnv.cmd file...

It has to be run before running the clientgen ant task and that too in the same window.

The task creates the jar successfully now...




 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!