[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] [Issue Comment Edited] (XMLBEANS-479) XmlException occurs when call XmlBeans.compileXsd metho
From:       "Chris White (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2012-04-27 14:49:47
Message-ID: 1079019564.3080.1335538187836.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/XMLBEANS-479?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263706#comment-13263706 ] \


Chris White edited comment on XMLBEANS-479 at 4/27/12 2:48 PM:
---------------------------------------------------------------

I have a similar problem. It looks like the include doesn't work with local file \
paths. I get the  an org.apache.xmlbeans.XmlException with the text: error: Could not \
load resource "./included.xsd" (network downloads disabled). If I enabled the \
XmlOption.setCompileDownloadUrls() then the code complains the I have a badly formed \
URI.

xsd:import works fine with a local path; it's just xsd:include that is broken.

What was the exception you were getting? 
                
      was (Author: cbwhitebu):
    I have a similar problem. It looks like the include doesn't work with local file \
paths. I get the  an org.apache.xmlbeans.XmlException with the text: error: Could not \
load resource "./included.xsd" (network downloads disabled). If I enabled the \
XmlOption.setCompileDownloadUrls() then the code complains the I have a badly formed \
URI.

What was the exception you were getting? 
                  
> XmlException occurs when call XmlBeans.compileXsd method on List of XmlObject of \
>                 WSDL file where some XmlObject contains XS:INCLUDE
> -----------------------------------------------------------------------------------------------------------------------------------
>  
> Key: XMLBEANS-479
> URL: https://issues.apache.org/jira/browse/XMLBEANS-479
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 2.5
> Environment: Windows 7, Java 7 
> Reporter: Michal Láska
> Attachments: IncludeBug.zip
> 
> 
> I have WSDL file which imports XSD files and these XSD files import or include \
> another XSD files etc. I call XmlBeans.compileXsd method on List of XmlObject of \
> this WSDL file. If some XmlObject contains XS:INCLUDE then XmlException occurs.
> I think that in StscImporter.DownloadTable.resolveImportsAndIncludes(boolean) \
> method should be Schema included = downloadSchema(includes[i], sourceNamespace, \
> includes[i].getSchemaLocation()); instead of 
> Schema included = downloadSchema(includes[i], null, \
> includes[i].getSchemaLocation()); because if I make this change then it works ok.
> See attached IncludeBug.zip file - it's an Eclipse Java Project

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic