You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sriram Vaidyanathan <Sr...@Copart.Com> on 2007/01/17 04:05:00 UTC

Axis2 1.1.1 with XMLBeans as the Data binding framework.

Hello,
       I tried to migrate to axis2 1.1.1 with XMLBeans as the data-binding framework. My WSDL actually references XSDs in it through a relative path. When I run the WSDL2Java command I get a FileNotFoundException. This used to work before with one of the Axis2 1.0 nightly build versions I had earlier.
 
This is the exception stacktrace:
 
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: \BMSDispositionService.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)
 
Any help on this would be appreciated...
 
Thanks,
Sriram

Re: Axis2 1.1.1 with XMLBeans as the Data binding framework.

Posted by Paul Fremantle <pz...@gmail.com>.
Sriram

Please can you post the WSDL/XSD?

Thanks

Paul

On 1/17/07, Sriram Vaidyanathan <Sr...@copart.com> wrote:
>
>
>
>
> Hello,
>
>        I tried to migrate to axis2 1.1.1 with XMLBeans as the data-binding
> framework. My WSDL actually references XSDs in it through a relative path.
> When I run the WSDL2Java command I get a FileNotFoundException. This used to
> work before with one of the Axis2 1.0 nightly build versions I had earlier.
>
>
>
> This is the exception stacktrace:
>
>
>
> 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:
> \BMSDispositionService.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)
>
>
>
> Any help on this would be appreciated…
>
>
>
> Thanks,
>
> Sriram


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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