[
http://issues.apache.org/jira/browse/AXIS2-557?page=comments#action_12374334 ]
Marko Huttunen commented on AXIS2-557:
--------------------------------------
Hi!
This solved the problem, but I still cannot get classes generated, because the
process stumbled to another problem:
Retrieving schema at 'CompositeCreditBOD.xsd', relative to
'file:/root/source/temp/CompositeCreditBOD/'.
Retrieving schema at
'www.openapplications.org_oagis_9_unqualifieddatatypes_1.1/UnqualifiedDataTypes.xsd',
relative to 'file:/root/source/temp/CompositeCreditBOD/CompositeCreditBOD.xsd'.
Retrieving schema at
'../www.openapplications.org_oagis_9_codelists/CodeLists.xsd', relative to
'file:/root/source/temp/CompositeCreditBOD/www.openapplications.org_oagis_9_unqualifieddatatypes_1.1/UnqualifiedDataTypes.xsd'.
Retrieving schema at
'../www.openapplications.org_oagis_9_currencycode_54217_2001/CodeList_CurrencyCode_ISO_7_04.xsd',
relative to
'file:/root/source/temp/CompositeCreditBOD/www.openapplications.org_oagis_9_codelists/CodeLists.xsd'.
Retrieving schema at
'../www.openapplications.org_oagis_9_IANAMIMEMediaTypes_2003/CodeList_MIMEMediaTypeCode_IANA_7_04.xsd',
relative to
'file:/root/source/temp/CompositeCreditBOD/www.openapplications.org_oagis_9_codelists/CodeLists.xsd'.
Retrieving schema at
'../www.openapplications.org_oagis_9_unitcode_66411_2001/CodeList_UnitCode_UNECE_7_04.xsd',
relative to
'file:/root/source/temp/CompositeCreditBOD/www.openapplications.org_oagis_9_codelists/CodeLists.xsd'.
Retrieving schema at
'../www.openapplications.org_oagis_9_languagecode_5639_1988/CodeList_LanguageCode_ISO_7_04.xsd',
relative to
'file:/root/source/temp/CompositeCreditBOD/www.openapplications.org_oagis_9_codelists/CodeLists.xsd'.
Retrieving schema at
'www.openapplications.org_oagis_9_qualifieddatatypes_1.1/QualifiedDataTypes.xsd',
relative to 'file:/root/source/temp/CompositeCreditBOD/CompositeCreditBOD.xsd'.
Retrieving schema at
'../www.openapplications.org_oagis_9_codelists/CodeLists.xsd', relative to
'file:/root/source/temp/CompositeCreditBOD/www.openapplications.org_oagis_9_qualifieddatatypes_1.1/QualifiedDataTypes.xsd'.
Retrieving schema at
'www.openapplications.org_oagis_9_codelists/CodeLists.xsd', relative to
'file:/root/source/temp/CompositeCreditBOD/CompositeCreditBOD.xsd'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: Could not
load resource "CompositeCreditBOD.xsd" (network downloads disabled).
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146)
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: org.apache.xmlbeans.XmlException: error:
Could not load resource "CompositeCreditBOD.xsd" (network downloads disabled).
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:212)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101)
... 2 more
Caused by: org.apache.xmlbeans.XmlException: error: Could not load resource
"CompositeCreditBOD.xsd" (network downloads disabled).
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:185)
... 3 more
All schema files are local, so there is no need for network download.
Can you help me with this, please?
Br,
Marko
> Problems when generating stubs and skeletons from wsdl
> ------------------------------------------------------
>
> Key: AXIS2-557
> URL: http://issues.apache.org/jira/browse/AXIS2-557
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: wsdl
> Versions: 0.95
> Environment: Linux, jdk 1.4.2-b28
> Reporter: Marko Huttunen
> Attachments: CreditService.tar.gz
>
> Hi!
> I am trying to generate stubs and skeletons from a wsdl, but I always end up
> with exceptions. With default databinding option the code generation ends up
> with this exception:
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException:
> org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad
> Enumeration value 'restriction'
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146)
> 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:
> org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad
> Enumeration value 'restriction'
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:162)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101)
> ... 2 more
> Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException:
> Bad Enumeration value 'restriction'
> at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:50)
> at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:28)
> at
> org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:38)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:616)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:107)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:57)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:238)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:200)
> at
> org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1897)
> at
> org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1882)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1732)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:119)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:233)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:96)
> ... 3 more
> If xmlbeans databinding is used, the result is the same, but with different
> exception:
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> extension.noProperDatabinding
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146)
> 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.wsdl.codegen.CodeGenerationException:
> extension.noProperDatabinding
> at
> org.apache.axis2.wsdl.codegen.extension.DefaultDatabindingExtension.engage(DefaultDatabindingExtension.java:35)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101)
> ... 2 more
> XMLBeans 2.1.0 can handle both schemas that are included in the wsdl,
> therefore they seem to be ok. The wsdl is also ok according to XMLSpy 2006.
> I can provide you with wsdl and schemas, if you like.
> Br,
> Marko
--
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