You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/06/14 20:48:26 UTC

[jira] Resolved: (AXIS2-1993) xsd:include in the WSDL causes FileNotFoundException with XMLBeans as the Databinding framework.

     [ https://issues.apache.org/jira/browse/AXIS2-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-1993.
-------------------------------------------------

    Resolution: Fixed

applied the patch. please have a look at with a nighly build. 

> 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: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>            Reporter: Sriram Vaidyanathan
>            Assignee: Amila Chinthaka Suriarachchi
>             Fix For: 1.1.1
>
>         Attachments: CodeGenerationUtility.java, patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org