[ http://issues.apache.org/jira/browse/AXIS2-1235?page=all ]

Davanum Srinivas resolved AXIS2-1235.
-------------------------------------

    Resolution: Invalid

Here's the error report from the latest nightly:

Retrieving document at 'http://docs.oasis-open.org/wsrf/rpw-2.wsdl', relative 
to 'file:/C:/junk/'.
Retrieving document at 'http://docs.oasis-open.org/wsrf/rw-2.wsdl', relative to 
'http://docs.oasis-open.org/wsrf/rpw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/r-2.xsd', relative to 
'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative to 
'http://docs.oasis-open.org/wsrf/r-2.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd', 
relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/rp-2.xsd', relative to 
'http://docs.oasis-open.org/wsrf/rpw-2.wsdl'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative to 
'http://docs.oasis-open.org/wsrf/rp-2.xsd'.
Retrieving schema at 'agreement_types.xsd', relative to 'file:/C:/junk/'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative to 
'file:/C:/junk/agreement_types.xsd'.
Retrieving schema at 'http://www.w3.org/2001/XMLSchema.xsd', relative to 
'file:/C:/junk/agreement_types.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 
'http://www.w3.org/2001/XMLSchema.xsd'.
Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd', 
relative to 'file:/C:/junk/agreement_types.xsd'.
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: 
org.apache.ws.commons.schema.XmlSchemaException: An included schema was 
announced to have the default target namespace or the target namespace 
http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace 
http://schemas.ggf.org/graap/2005/09/ws-agreement; nested exception is:
        java.lang.RuntimeException: 
org.apache.ws.commons.schema.XmlSchemaException: An included schema was 
announced to have the default target namespace or the target namespace 
http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace 
http://schemas.ggf.org/graap/2005/09/ws-agreement
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:239)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103)
        ... 2 more
Caused by: java.lang.RuntimeException: 
org.apache.ws.commons.schema.XmlSchemaException: An included schema was 
announced to have the default target namespace or the target namespace 
http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace 
http://schemas.ggf.org/graap/2005/09/ws-agreement
        at 
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1803)
        at 
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1815)
        at 
org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1594)
        at 
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:150)
        at 
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:315)
        at 
org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:132)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:1611)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:204)
        ... 3 more
Caused by: org.apache.ws.commons.schema.XmlSchemaException: An included schema 
was announced to have the default target namespace or the target namespace 
http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace 
http://schemas.ggf.org/graap/2005/09/ws-agreement
        at 
org.apache.ws.commons.schema.SchemaBuilder$2.validate(SchemaBuilder.java:1619)
        at 
org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:283)
        at 
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:78)
        at 
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:67)
        at 
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:325)
        at 
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:272)
        at 
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1801)
        ... 10 more

-- dims

> Unsupported content Complex Content !
> -------------------------------------
>
>                 Key: AXIS2-1235
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1235
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows XP, Java 1.5 SDK, virtual machine (32 bit)
>            Reporter: Kai Huener
>         Attachments: agreement_types.xsd, AgreementFactoryPortType.wsdl
>
>
> I tried to generate Java code by using the WSDL2Java.bat of the actual
> nightly build, but with no success. I got the error message:
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException:
> org.apache.axis2.schema.SchemaCompilationException : Unsupported
> content Complex Content ! at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
> best regards,
> Kai Huener

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to