List Info

Thread: XS:IMPORT SCOMP error




XS:IMPORT SCOMP error
country flaguser name
United States
2007-07-30 08:25:44

I have an XSD that uses xs:import to import another everything validates in XMLSPY however, I get the following error when I try to SCOMP...

SCOMP ERROR:
C:>scomp -out C:xml2.2.0XmlBeansdisclaimersservice2.2.0.jar c:xml
2.2.0schemasdisclaimersdisclaimersservice.xsd -compiler c:javajdk1.5.0_11
binjavac.exe -src c:xml2.2.0src

disclaimersservice.xsd:5:2: error: Could not find resource - invalid location UR
L: Illegal character in opaque part at index 2: C:xml2.2.0schemasdisclaimers
disclaimers.xsd
disclaimersservice.xsd:9:5: error: src-resolve: element 'disclaimerhttp://www.xxx
.com/schemas/disclaimers/disclaimers' not found.


XSD 1:
<xs:schema xmlns="http://www.xxx.com/schemas/disclaimers/disclaimers" xmlnss="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.xxx.com/schemas/disclaimers/disclaimers">


XSD 2:
<xs:schema xmlns="http://www.xxx.com/schemas/disclaimers/disclaimersservice" xmlnss="http://www.w3.org/2001/XMLSchema"

xmlns:dis="http://www.xxx.com/schemas/disclaimers/disclaimers" targetNamespace="http://www.xxx.com/schemas/disclaimers/disclaimersservice">

&nbsp; &nbsp; &nbsp; &nbsp; <xs:import namespace="http://www.xxx.com/schemas/disclaimers/disclaimers"
&nbsp; &nbsp; &nbsp; &nbsp; schemaLocation="C:xml2.2.0schemasdisclaimersdisclaimers.xsd"/>;


Any ideas?

Matt




IMPORTANT: &nbsp;E-mail&nbsp;sent&nbsp;through the&nbsp;Internet is&nbsp;not&nbsp;secure.&nbsp;Legg&nbsp;Mason&nbsp;therefor
recommends&nbsp;that&nbsp;you ;do not send any&nbsp;confidential or sensitive ;information to&nbsp;us ;
via&nbsp;electronic mail, including social ;security&nbsp;numbers, account numbers, ;or personal
identification numbers. Delivery,&nbsp;and ;or timely delivery&nbsp;of Internet&nbsp;mail ;is no
guaranteed.&nbsp;Legg&nbsp;Mason&nbsp;therefore recommends&nbsp;that ;you do not&nbsp;send&nbsp;time&nbsp;sensitiv
or action-oriented messages to us&nbsp;via ;electronic mail.

This&nbsp;message is&nbsp;intended for&nbsp;the&nbsp;addressee only and&nbsp;may&nbsp;contain
privileged or&nbsp;confidential information. Unless you&nbsp;are&nbsp;the ;intended
recipient, you&nbsp;may&nbsp;not use, copy or disclose to anyone any&nbsp;information
contained ;in this message. If you have&nbsp;received this message in error,
please&nbsp;notify the&nbsp;author&nbsp;by&nbsp;replying&nbsp;to&nbsp;this ;message&nbsp;and ;then kindly
delete the message. Thank you.
Re: XS:IMPORT SCOMP error
user name
2007-07-30 13:39:38
Hi Matt,
The value you ar using for your schemaLocation is an invalid URI and that is probably why xmlbeans is failing.
Your XSD uses the following:
schemaLocation ="C:xml2.2.0schemasdisclaimersdisclaimers.xsd"
and that should probably be something like:
schemaLocation="file:// ... /disclaimers.xsd "

information on valid values for an anyURI type can be found at this URL
http://www.w3.org/TR/xmlschema-2/#anyURI

Hope this helps,
-Jacob Danner

On 7/30/07, Dicks, Matthew < MDickslmus.leggmason.com">MDickslmus.leggmason.com&gt; wrote:

I have an XSD that uses xs:import to import another everything validates in XMLSPY however, I get the following error when I try to SCOMP...

SCOMP ERROR:
C:>scomp -out C:xml2.2.0XmlBeansdisclaimersservice2.2.0.jar c:xml
2.2.0schemasdisclaimersdisclaimersservice.xsd -compiler c:javajdk1.5.0_11
binjavac.exe -src c:xml2.2.0src

disclaimersservice.xsd:5:2: error: Could not find resource - invalid location UR
L: Illegal character in opaque part at index 2: C:xml2.2.0schemasdisclaimers
disclaimers.xsd
disclaimersservice.xsd:9:5: error: src-resolve: element 'disclaimerhttp://www.xxx
.com/schemas/disclaimers/disclaimers' not found.


XSD 1:
<xs:schema xmlns ="http://www.xxx.com/schemas/disclaimers/disclaimers " xmlnss=" http://www.w3.org/2001/XMLSchema" targetNamespace=" http://www.xxx.com/schemas/disclaimers/disclaimers">


XSD 2:
<xs:schema xmlns ="http://www.xxx.com/schemas/disclaimers/disclaimersservice " xmlnss=" http://www.w3.org/2001/XMLSchema"

xmlns:dis=" http://www.xxx.com/schemas/disclaimers/disclaimers" targetNamespace ="http://www.xxx.com/schemas/disclaimers/disclaimersservice ">

&nbsp; &nbsp; &nbsp; &nbsp; <xs:import namespace ="http://www.xxx.com/schemas/disclaimers/disclaimers "
&nbsp; &nbsp; &nbsp; &nbsp; schemaLocation="C:xml2.2.0schemasdisclaimersdisclaimers.xsd "/>;


Any ideas?

Matt




IMPORTANT: &nbsp;E-mail sent&nbsp;through the&nbsp;Internet is&nbsp;not&nbsp;secure.&nbsp;Legg&nbsp;Mason&nbsp;therefore 
recommends&nbsp;that&nbsp;you&nbsp;do not send any&nbsp;confidential ;or sensitive&nbsp;information to&nbsp;us&nbsp;
via&nbsp;electronic mail, including ;social&nbsp;security&nbsp;numbers, account numbers,&nbsp;or personal
identification numbers. Delivery,&nbsp;and&nbsp;or timely delivery&nbsp;of Internet&nbsp;mail&nbsp;is not 
guaranteed. Legg&nbsp;Mason&nbsp;therefore recommends&nbsp;that&nbsp;you do not send&nbsp;time&nbsp;sensitive 
or action-oriented messages to us&nbsp;via&nbsp;electronic mail.

This message is&nbsp;intended for the&nbsp;addressee only and&nbsp;may&nbsp;contain
privileged or&nbsp;confidential information. Unless you are&nbsp;the&nbsp;intended
recipient, you&nbsp;may&nbsp;not ;use, copy or disclose to anyone any information
contained&nbsp;in this message. ;If you have received this message in error,
please notify the&nbsp;author by&nbsp;replying to&nbsp;this&nbsp;message&nbsp;and&nbsp;then ;kindly
delete the message. ;Thank ;you.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )