You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Naveen Ravindra <na...@ecanarys.com> on 2007/06/27 13:22:15 UTC

SchemaCompiler - error: src-resolve: type 'Artifact@http:///dp.ecore' not found

I have DCP.xsd where in i import DP.xsd(which contains Artifact element).

I have placed both the xsd in the same directory but i get the error:
src-resolve: type 'Artifact@http:///dp.ecore' not found


DP.xsd
A chunk from xsd file below
<xsd:schema xmlns:dp="http:///dp.ecore"/>


DCP.xsd 
<xsd:schema xmlns:dcp="http:///dcp.ecore"
xmlns:defaultprofile="http:///dp.ecore"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http:///dcp.ecore">

  <xsd:import namespace="http:///dp.ecore" schemaLocation="DP.xsd"/>


Regards,
Naveen
-- 
View this message in context: http://www.nabble.com/SchemaCompiler---error%3A-src-resolve%3A-type-%27Artifact%40http%3A---dp.ecore%27-not-found-tf3987733.html#a11322586
Sent from the Xml Beans - User mailing list archive at Nabble.com.


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


Re: SchemaCompiler - error: src-resolve: type 'Artifact@http:///dp.ecore' not found

Posted by Naveen Ravindra <na...@ecanarys.com>.
Hello Mr Danner,

          Thank you for your reply.

          I got to why was it throwing the error... when i replaced
http:///dp.ecore to http://dp.ecore
in both the xsd files it worked fine... Hence xml beans needs a strict
http:// not http:///


Regards,
Naveen





Jacob Danner-2 wrote:
> 
> It's hard to tell exactly why you are seeing this from the snippets
> but here are some suggestions.
> does DP,xsd have a targetNamespace? (it doesn't in the snippet)
> Does this work if an xsd:include is used instead?
> Are there any typo's in the namespace declarations.
> 
> Best of Luck,
> -Jacob Danner
> 
> On 6/27/07, Naveen Ravindra <na...@ecanarys.com> wrote:
>>
>> I have DCP.xsd where in i import DP.xsd(which contains Artifact element).
>>
>> I have placed both the xsd in the same directory but i get the error:
>> src-resolve: type 'Artifact@http:///dp.ecore' not found
>>
>>
>> DP.xsd
>> A chunk from xsd file below
>> <xsd:schema xmlns:dp="http:///dp.ecore"/>
>>
>>
>> DCP.xsd
>> <xsd:schema xmlns:dcp="http:///dcp.ecore"
>> xmlns:defaultprofile="http:///dp.ecore"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> targetNamespace="http:///dcp.ecore">
>>
>>   <xsd:import namespace="http:///dp.ecore" schemaLocation="DP.xsd"/>
>>
>>
>> Regards,
>> Naveen
>> --
>> View this message in context:
>> http://www.nabble.com/SchemaCompiler---error%3A-src-resolve%3A-type-%27Artifact%40http%3A---dp.ecore%27-not-found-tf3987733.html#a11322586
>> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/SchemaCompiler---error%3A-src-resolve%3A-type-%27Artifact%40http%3A---dp.ecore%27-not-found-tf3987733.html#a11337315
Sent from the Xml Beans - User mailing list archive at Nabble.com.


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


Re: SchemaCompiler - error: src-resolve: type 'Artifact@http:///dp.ecore' not found

Posted by Jacob Danner <ja...@gmail.com>.
It's hard to tell exactly why you are seeing this from the snippets
but here are some suggestions.
does DP,xsd have a targetNamespace? (it doesn't in the snippet)
Does this work if an xsd:include is used instead?
Are there any typo's in the namespace declarations.

Best of Luck,
-Jacob Danner

On 6/27/07, Naveen Ravindra <na...@ecanarys.com> wrote:
>
> I have DCP.xsd where in i import DP.xsd(which contains Artifact element).
>
> I have placed both the xsd in the same directory but i get the error:
> src-resolve: type 'Artifact@http:///dp.ecore' not found
>
>
> DP.xsd
> A chunk from xsd file below
> <xsd:schema xmlns:dp="http:///dp.ecore"/>
>
>
> DCP.xsd
> <xsd:schema xmlns:dcp="http:///dcp.ecore"
> xmlns:defaultprofile="http:///dp.ecore"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http:///dcp.ecore">
>
>   <xsd:import namespace="http:///dp.ecore" schemaLocation="DP.xsd"/>
>
>
> Regards,
> Naveen
> --
> View this message in context:
> http://www.nabble.com/SchemaCompiler---error%3A-src-resolve%3A-type-%27Artifact%40http%3A---dp.ecore%27-not-found-tf3987733.html#a11322586
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>

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