xsd:include in the WSDL causes FileNotFoundException with XMLBeans as the
Databinding framework.
------------------------------------------------------------------------------------------------
Key: AXIS2-1993
URL: https://issues.apache.org/jira/browse/AXIS2-1993
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: databinding
Affects Versions: 1.1.1
Reporter: Sriram Vaidyanathan
Fix For: 1.1.1
When i add an xsd:include to my WSDL as shown below, a FileNotFoundException is
thrown:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.sample.com/test" version="2.1.0">
<xsd:include schemaLocation="SampleService.xsd" />
</xsd:schema>
Here is the Exception stacktrace:
Running AXIS Tool WSDL2Java with Axis2 Home as C:\axis2-1.1.1
[delete] Deleting directory C:\cvs\aps\sample\wsdl\xmlbeans_gen_src
[java] Retrieving schema at 'SampleService.xsd', relative to
'file:/C:/cvs/aps/sample/wsdl/src/main/config/'.
[java] Jan 16, 2007 9:31:48 PM
org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver
resolveEntity
[java] INFO: Resolving schema with publicId [null] and systemId
[\SampleService.xsd]
[java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
[java] Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
[java] at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:92)
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
[java] ... 2 more
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:82)
[java] ... 3 more
[java] Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: error: Problem parsing referenced XML
resource - java.io.FileNotFoundException: \SampleService.xsd (The system cannot
find the file specified)
[java] at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:242)
[java] ... 8 more
[java] Caused by: org.apache.xmlbeans.XmlException: error: Problem parsing
referenced XML resource - java.io.FileNotFoundException: \SampleService.xsd
(The system cannot find the file specified)
[java] at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
[java] at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:160)
[java] ... 8 more
[java] Java Result: 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://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]