axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ajith Ranabahu <ajith.ranab...@gmail.com>
Subject Re: WSDL2Java Exception on valid WSDL
Date Sat, 21 Jan 2006 08:22:56 GMT
Hi,
I've the feeling that this is a bug in the WS-Commons XML Schema processor.
Try with -d xmlbeans and please.

On 1/21/06, Chathura Herath <chathurah@gmail.com> wrote:
>
> Pls post the WSDL
> Chathura
>
> On 1/18/06, Torsten Schmidt <maulwurf-info@gmx.de> wrote:
> > Hi
> > when I try to generate java classes from the specified WSDL file, the
> > following exception is thrown...
> > the wsdl is valid!!
> >
> > has anyone an idea what to do?
> >
> > C:\Programmierung\AXIS2\AXIS_94\bin>WSDL2Java -uri
> > parlayx_presence_consumer_service_2_0.wsdl -o .\test -ss -sd
> >
> >
> > Retrieving document at 'parlayx_presence_consumer_interface_2_0.wsdl'.
> > Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to
> >
> 'file:/C:/Programmierung/AXIS2/AXIS_94/bin/parlayx_presence_consumer_interface_2_0.wsdl'.
> > Retrieving schema at 'parlayx_common_types_2_0.xsd', relative to
> >
> 'file:/C:/Programmierung/AXIS2/AXIS_94/bin/parlayx_common_faults_2_0.wsdl'.
> > Retrieving schema at 'parlayx_presence_types_2_0.xsd', relative to
> >
> 'file:/C:/Programmierung/AXIS2/AXIS_94/bin/parlayx_presence_consumer_interface_2_0.wsdl'.
> > Retrieving schema at 'parlayx_common_types_2_0.xsd', relative to
> >
> 'file:/C:/Programmierung/AXIS2/AXIS_94/bin/parlayx_presence_consumer_interface_2_0.wsdl'.
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > java.lang.RuntimeException: java.lang.RuntimeException: Schema for
> > namespace 'http://www.csapi.org/schema/parlayx/pres
> > ence/v2_0' already contains type 'string
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
> CodeGenerationEngine.java:118)
> >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
> >         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
> > Schema for namespace 'http://www.csapi.org/schema/parlayx/presence/v2_0'
> > already contains type 'string
> >         at
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(
> SimpleDBExtension.java:152)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
> CodeGenerationEngine.java:80)
> >         ... 2 more
> > Caused by: java.lang.RuntimeException: Schema for namespace
> > 'http://www.csapi.org/schema/parlayx/presence/v2_0' already contains
> > type 'string
> >         at
> > org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:237)
> >         at
> > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(
> SchemaBuilder.java:98)
> >         at
> > org.apache.ws.commons.schema.XmlSchemaCollection.read(
> XmlSchemaCollection.java:233)
> >         at
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(
> SimpleDBExtension.java:86)
> >         ... 3 more
> >
> >
> > C:\Programmierung\AXIS2\AXIS_94\bin>
> >
> >
> > what is meant by :
> >                                     " already contains type 'string  "?
> >
> >
> >
> >
> > thanx a lot
> > (thanx for the previous jalopy help, too)
> >
>
>
> --
> Chathura Herath
> http://chathurah.blogspot.com/
>



--
Ajith Ranabahu

Mime
View raw message