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 "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/04/23 10:17:06 UTC

[jira] Resolved: (AXIS2-527) Command-line XMLBeans databinding code generation fails for Axis2, but works in XMLBeans stand-alone

     [ http://issues.apache.org/jira/browse/AXIS2-527?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-527:
-------------------------------------------

    Resolution: Fixed

As Jens pointed out, the reason for this is the wrongful resolution of imports. The problem was solved by introducing a custom entity resolver. The attached WSDL works fine with codegen now (with -d xmlbeans option. ADB cannot process this schema since it does not support simpleContent)

> Command-line XMLBeans databinding code generation fails for Axis2, but works in XMLBeans stand-alone
> ----------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-527
>          URL: http://issues.apache.org/jira/browse/AXIS2-527
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 0.95
>  Environment: Windows XP+SP2, Sun JDK1.4.2_08
>     Reporter: Prabha Pillay
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Assessments.wsdl, test-include.tar.gz
>
> For the following WSDL, when I attempt to run WSDL2Java on the command line with the "-d xmlbeans" argument, I get the following error:
>  
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error:
> Could not load resource "../CPO/PersonName.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 "../CPO/PersonName.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 "../ CPO/PersonName.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
>  
> Contrary to the error message, there are no download restrictions on the network. 
> If I run XMLBeans standalone (scomp on the command line), I'm able to generate the databinding classes and the .xsb files, and thereby manually setup an Axis2 web service and client.

-- 
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