You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Fabien Couble <fa...@capgemini.com> on 2006/07/25 17:05:43 UTC
[AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: [AXIS2 ]WSDL generation error
Posted by Fabien Couble <fa...@capgemini.com>.
Hi,
Just for information...
The problem is solved.
Actually, the problem was in my wsdl file. In fact, I was using the same complextype for two messages (request-response) and apparently, it doesn't work. You must declare two same types with two different names and then it works...
Cheers
Fabien
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Wednesday, July 26, 2006 6:05 PM
Subject: Re: [AXIS2 ]WSDL generation error
Hi,
I have generated my stub/skeleton with the latest XMLschema.jar but the methods toEnvelope is still unknown with 3 parameters.
I tryed also to add messages in order to each message has its own signature and I tryed without the type "any" as Anne suggests me, but the result is the same.
Can you tried to generate the stub and skel with the enclosed wsdl file to determinate if it is a bug.
Thx in advance
Fabien
----- Original Message -----
From: Ajith Ranabahu
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Wednesday, July 26, 2006 6:40 AM
Subject: Re: [AXIS2 ]WSDL generation error
Hi,
You have an older XMLschema jar. Please get the snapshot from
http://people.apache.org/repository/org.apache.ws.commons/jars/
Ajith
On 7/25/06, Martin Gainty <mg...@hotmail.com> wrote:
Drats..so close!
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:188)
.. 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
.. 3 more
Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCo
mplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:715)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:674)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:414)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:385)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:26
5)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:20
9)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
:77)
.. 8 more
and I cannot locate addMetaInfo method anywhere in my copy of XmlSchemaComplexType class..
Obrigado Robert-
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: robert lazarski
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Tuesday, July 25, 2006 1:39 PM
Subject: Re: [AXIS2 ]WSDL generation error
Make sure you have wsdl4j-1.5.2.jar in your classpath.
HTH,
Robert
http://www.braziloutsource.com/
On 7/25/06, Martin Gainty <mgainty@hotmail.com > wrote:
I tried the same and got this error
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/schema/Schema
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
eElements(WSDL11ToAxisServiceBuilder.java:1433)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
g(WSDL11ToAxisServiceBuilder.java:315)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:207)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Anyone know where the javax.wsdl.extensions.schema.* library is located?
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Tuesday, July 25, 2006 11:05 AM
Subject: [AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Ajith Ranabahu
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: [AXIS2 ]WSDL generation error
Posted by Fabien Couble <fa...@capgemini.com>.
Hi,
I have generated my stub/skeleton with the latest XMLschema.jar but the methods toEnvelope is still unknown with 3 parameters.
I tryed also to add messages in order to each message has its own signature and I tryed without the type "any" as Anne suggests me, but the result is the same.
Can you tried to generate the stub and skel with the enclosed wsdl file to determinate if it is a bug.
Thx in advance
Fabien
----- Original Message -----
From: Ajith Ranabahu
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Wednesday, July 26, 2006 6:40 AM
Subject: Re: [AXIS2 ]WSDL generation error
Hi,
You have an older XMLschema jar. Please get the snapshot from
http://people.apache.org/repository/org.apache.ws.commons/jars/
Ajith
On 7/25/06, Martin Gainty <mg...@hotmail.com> wrote:
Drats..so close!
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:188)
.. 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
.. 3 more
Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCo
mplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:715)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:674)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:414)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:385)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:26
5)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:20
9)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
:77)
.. 8 more
and I cannot locate addMetaInfo method anywhere in my copy of XmlSchemaComplexType class..
Obrigado Robert-
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: robert lazarski
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Tuesday, July 25, 2006 1:39 PM
Subject: Re: [AXIS2 ]WSDL generation error
Make sure you have wsdl4j-1.5.2.jar in your classpath.
HTH,
Robert
http://www.braziloutsource.com/
On 7/25/06, Martin Gainty <mgainty@hotmail.com > wrote:
I tried the same and got this error
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/schema/Schema
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
eElements(WSDL11ToAxisServiceBuilder.java:1433)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
g(WSDL11ToAxisServiceBuilder.java:315)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:207)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Anyone know where the javax.wsdl.extensions.schema.* library is located?
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Tuesday, July 25, 2006 11:05 AM
Subject: [AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Ajith Ranabahu
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: [AXIS2 ]WSDL generation error
Posted by Martin Gainty <mg...@hotmail.com>.
so ..The Good news is that once I placed policy-1.0.jar (http://ws.apache.org/commons/policy/download.cgi) on CLASSPATH the WSDL2Java produced
$AXIS2_HOME/samples/transfer2/src/com/example/transfer_wsdl/WSTransferServiceCallbackHandler.java
$AXIS2_HOME/samples/transfer2/src/com/example/transfer_wsdl/WSTransferServiceStub.java
Thanks Ajith!
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Ajith Ranabahu
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Wednesday, July 26, 2006 12:40 AM
Subject: Re: [AXIS2 ]WSDL generation error
Hi,
You have an older XMLschema jar. Please get the snapshot from
http://people.apache.org/repository/org.apache.ws.commons/jars/
Ajith
On 7/25/06, Martin Gainty <mg...@hotmail.com> wrote:
Drats..so close!
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:188)
.. 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
.. 3 more
Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCo
mplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:715)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:674)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:414)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:385)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:26
5)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:20
9)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
:77)
.. 8 more
and I cannot locate addMetaInfo method anywhere in my copy of XmlSchemaComplexType class..
Obrigado Robert-
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: robert lazarski
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Tuesday, July 25, 2006 1:39 PM
Subject: Re: [AXIS2 ]WSDL generation error
Make sure you have wsdl4j-1.5.2.jar in your classpath.
HTH,
Robert
http://www.braziloutsource.com/
On 7/25/06, Martin Gainty <mgainty@hotmail.com > wrote:
I tried the same and got this error
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/schema/Schema
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
eElements(WSDL11ToAxisServiceBuilder.java:1433)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
g(WSDL11ToAxisServiceBuilder.java:315)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:207)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Anyone know where the javax.wsdl.extensions.schema.* library is located?
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Tuesday, July 25, 2006 11:05 AM
Subject: [AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Ajith Ranabahu
Re: [AXIS2 ]WSDL generation error
Posted by Martin Gainty <mg...@hotmail.com>.
Hello Ajith--
What I need is a comprehensive build environment which I dont see in any of the distro's
The one provided in the jar located at http://people.apache.org/repository/org.apache.ws.commons/jars/XMLSchema-SNAPSHOT.jar produces
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ws/policy/Assertion
I can go and get these latest version of jars/classes but I might introduce version mismatch disparity as with the previous error
java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaComplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)
Thanks
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Ajith Ranabahu
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Wednesday, July 26, 2006 12:40 AM
Subject: Re: [AXIS2 ]WSDL generation error
Hi,
You have an older XMLschema jar. Please get the snapshot from
http://people.apache.org/repository/org.apache.ws.commons/jars/
Ajith
On 7/25/06, Martin Gainty <mg...@hotmail.com> wrote:
Drats..so close!
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:188)
.. 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
.. 3 more
Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCo
mplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:715)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:674)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:414)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:385)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:26
5)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:20
9)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
:77)
.. 8 more
and I cannot locate addMetaInfo method anywhere in my copy of XmlSchemaComplexType class..
Obrigado Robert-
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: robert lazarski
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Tuesday, July 25, 2006 1:39 PM
Subject: Re: [AXIS2 ]WSDL generation error
Make sure you have wsdl4j-1.5.2.jar in your classpath.
HTH,
Robert
http://www.braziloutsource.com/
On 7/25/06, Martin Gainty <mgainty@hotmail.com > wrote:
I tried the same and got this error
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/schema/Schema
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
eElements(WSDL11ToAxisServiceBuilder.java:1433)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
g(WSDL11ToAxisServiceBuilder.java:315)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:207)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Anyone know where the javax.wsdl.extensions.schema.* library is located?
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Tuesday, July 25, 2006 11:05 AM
Subject: [AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Ajith Ranabahu
Re: [AXIS2 ]WSDL generation error
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
You have an older XMLschema jar. Please get the snapshot from
http://people.apache.org/repository/org.apache.ws.commons/jars/
Ajith
On 7/25/06, Martin Gainty <mg...@hotmail.com> wrote:
>
> Drats..so close!
>
> java org.apache.axis2.wsdl.WSDL2Java -uri
> file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> (CodeGener
> ationEngine.java:235)
>
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetExcepti
> on
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:52)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> (CodeGener
> ationEngine.java:188)
> .. 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:49)
> .. 3 more
> Caused by: java.lang.NoSuchMethodError:
> org.apache.ws.commons.schema.XmlSchemaCo
> mplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)V
> at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
> SchemaCompiler.java:715)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(
> SchemaCompiler.j
> ava:674)
> at org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> java:414)
> at org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> java:385)
> at org.apache.axis2.schema.SchemaCompiler.compile(
> SchemaCompiler.java:26
> 5)
> at org.apache.axis2.schema.SchemaCompiler.compile(
> SchemaCompiler.java:20
> 9)
> at org.apache.axis2.schema.ExtensionUtility.invoke(
> ExtensionUtility.java
> :77)
> .. 8 more
>
> and I cannot locate addMetaInfo method anywhere in my copy
> of XmlSchemaComplexType class..
> Obrigado Robert-
> M-
> *********************************************************************
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed. If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy. Thank you.
>
>
>
>
> ----- Original Message -----
> *From:* robert lazarski <ro...@gmail.com>
> *To:* axis-user@ws.apache.org ; Martin Gainty <mg...@hotmail.com>
> *Sent:* Tuesday, July 25, 2006 1:39 PM
> *Subject:* Re: [AXIS2 ]WSDL generation error
>
> Make sure you have wsdl4j-1.5.2.jar in your classpath.
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 7/25/06, Martin Gainty <mgainty@hotmail.com <mgainty@hotmail.com+>>
> wrote:
> >
> > I tried the same and got this error
> >
> > java org.apache.axis2.wsdl.WSDL2Java -uri
> > file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > javax/wsdl/extensions
> > /schema/Schema
> > at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
> > eElements(WSDL11ToAxisServiceBuilder.java:1433)
> > at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
> > g(WSDL11ToAxisServiceBuilder.java:315)
> > at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> > ce(WSDL11ToAxisServiceBuilder.java:207)
> > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > .<init>(CodeGenerat
> > ionEngine.java:114)
> > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> >
> > Anyone know where the javax.wsdl.extensions.schema.* library is located?
> >
> > M-
> > *********************************************************************
> > This email message and any files transmitted with it contain
> > confidential
> > information intended only for the person(s) to whom this email message
> > is
> > addressed. If you have received this email message in error, please
> > notify
> > the sender immediately by telephone or email and destroy the original
> > message without making a copy. Thank you.
> >
> >
> >
> >
> > ----- Original Message -----
> > *From:* Fabien Couble <fa...@capgemini.com>
> > *To:* axis-user@ws.apache.org
> > *Sent:* Tuesday, July 25, 2006 11:05 AM
> > *Subject:* [AXIS2 ]WSDL generation error
> >
> > Hi,
> > I'm using the latest nightly version of Axis2 (23/07/06). Actually, I
> > have generated java code from a wsdl file but there is an error in the
> > generated code.
> > The method in cause is the method toEnvelope in the stub code (client
> > side). Actually, the server code is allright.
> > Do you know what coud be the cause? Is my wsdl file which in cause or is
> > it a bug of Axis2?
> >
> > Regards
> > Fabien
> > This message contains information that may be privileged or
> > confidential and is the property of the Capgemini Group. It is intended only
> > for the person to whom it is addressed. If you are not the intended
> > recipient, you are not authorized to read, print, retain, copy, disseminate,
> > distribute, or use this message or any part thereof. If you receive this
> > message in error, please notify the sender immediately and delete all copies
> > of this message.
> >
> > ------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
--
Ajith Ranabahu
Re: [AXIS2 ]WSDL generation error
Posted by Martin Gainty <mg...@hotmail.com>.
Drats..so close!
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:188)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
... 3 more
Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCo
mplexType.addMetaInfo(Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:715)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:674)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:414)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:385)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:26
5)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:20
9)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
:77)
... 8 more
and I cannot locate addMetaInfo method anywhere in my copy of XmlSchemaComplexType class..
Obrigado Robert-
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: robert lazarski
To: axis-user@ws.apache.org ; Martin Gainty
Sent: Tuesday, July 25, 2006 1:39 PM
Subject: Re: [AXIS2 ]WSDL generation error
Make sure you have wsdl4j-1.5.2.jar in your classpath.
HTH,
Robert
http://www.braziloutsource.com/
On 7/25/06, Martin Gainty <mgainty@hotmail.com > wrote:
I tried the same and got this error
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/schema/Schema
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
eElements(WSDL11ToAxisServiceBuilder.java:1433)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
g(WSDL11ToAxisServiceBuilder.java:315)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:207)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Anyone know where the javax.wsdl.extensions.schema.* library is located?
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Tuesday, July 25, 2006 11:05 AM
Subject: [AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
----------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [AXIS2 ]WSDL generation error
Posted by robert lazarski <ro...@gmail.com>.
Make sure you have wsdl4j-1.5.2.jar in your classpath.
HTH,
Robert
http://www.braziloutsource.com/
On 7/25/06, Martin Gainty <mg...@hotmail.com> wrote:
>
> I tried the same and got this error
>
> java org.apache.axis2.wsdl.WSDL2Java -uri
> file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/wsdl/extensions
> /schema/Schema
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
> eElements(WSDL11ToAxisServiceBuilder.java:1433)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
> g(WSDL11ToAxisServiceBuilder.java:315)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:207)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> .<init>(CodeGenerat
> ionEngine.java:114)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>
> Anyone know where the javax.wsdl.extensions.schema.* library is located?
>
> M-
> *********************************************************************
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed. If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy. Thank you.
>
>
>
>
> ----- Original Message -----
> *From:* Fabien Couble <fa...@capgemini.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Tuesday, July 25, 2006 11:05 AM
> *Subject:* [AXIS2 ]WSDL generation error
>
> Hi,
> I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have
> generated java code from a wsdl file but there is an error in the generated
> code.
> The method in cause is the method toEnvelope in the stub code (client
> side). Actually, the server code is allright.
> Do you know what coud be the cause? Is my wsdl file which in cause or is
> it a bug of Axis2?
>
> Regards
> Fabien
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
> ------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: [AXIS2 ]WSDL generation error
Posted by Martin Gainty <mg...@hotmail.com>.
I tried the same and got this error
java org.apache.axis2.wsdl.WSDL2Java -uri file:///AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/schema/Schema
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibl
eElements(WSDL11ToAxisServiceBuilder.java:1433)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBindin
g(WSDL11ToAxisServiceBuilder.java:315)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:207)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Anyone know where the javax.wsdl.extensions.schema.* library is located?
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Fabien Couble
To: axis-user@ws.apache.org
Sent: Tuesday, July 25, 2006 11:05 AM
Subject: [AXIS2 ]WSDL generation error
Hi,
I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have generated java code from a wsdl file but there is an error in the generated code.
The method in cause is the method toEnvelope in the stub code (client side). Actually, the server code is allright.
Do you know what coud be the cause? Is my wsdl file which in cause or is it a bug of Axis2?
Regards
Fabien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [AXIS2 ]WSDL generation error
Posted by Anne Thomas Manes <at...@gmail.com>.
When using document style, each operation must have a unique signature (the
QName of the child of the <soap:Body> in the input message). You have two
operations (Get and Delete) that use the same message for input
(EmptyMessage). You must define unique input messages for each operation.
Also -- what databinding system are you using? I don't believe that ADB
support <xsd:any>.
Anne
On 7/25/06, Fabien Couble <fa...@capgemini.com> wrote:
>
> Hi,
> I'm using the latest nightly version of Axis2 (23/07/06). Actually, I have
> generated java code from a wsdl file but there is an error in the generated
> code.
> The method in cause is the method toEnvelope in the stub code (client
> side). Actually, the server code is allright.
> Do you know what coud be the cause? Is my wsdl file which in cause or is
> it a bug of Axis2?
>
> Regards
> Fabien
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>