Test 1 will not work because the xs:schemaLocation does not point to valid location for the schema.<br><br>You can work around this by configuring an XML Catalog in your IDE so it treats &quot;drools-change-set-5.0.xsd&quot; as an alias. <br>
<br>Checkout the widely available xs:schemaLocation documentation for details of its syntax.<br><br><br>Test 2 *should* be OK. The referenced schema does exist and is valid.<br><br>guvnor-examples uses the exact same and works well (or at least for me!)<br>
<br>Can you provide a self-contained unit test to replicate the issue?<br><br><br><br><div class="gmail_quote">On 23 January 2012 20:43, domingo <span dir="ltr">&lt;<a href="mailto:sprabakkar@gmail.com">sprabakkar@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have some issues using changeset...<br>
<br>
*Test - 1*<br>
&lt;change-set xmlns=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>&#39;<br>
xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;<br>
xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a><br>
drools-change-set-5.0.xsd&#39;&gt;<br>
&lt;add&gt;<br>
&lt;resource source=&#39;classpath:dir1/dir2/filename.drl&#39; type=&#39;DRL&#39; /&gt;<br>
&lt;/add&gt;<br>
&lt;/change-set&gt;<br>
<br>
<br>
when i use the above changeset (thanks to user forum)...the program works<br>
fine no issues but i got the following warning messages...<br>
<br>
<br>
(null: 1, 201): schema_reference.4: Failed to read schema document<br>
&#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the<br>
document could not be read; 3) the root element of the document is not<br>
&lt;xsd:schema&gt;.<br>
(null: 1, 201): cvc-elt.1: Cannot find the declaration of element<br>
&#39;change-set&#39;.<br>
(null: 1, 207): schema_reference.4: Failed to read schema document<br>
&#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the<br>
document could not be read; 3) the root element of the document is not<br>
&lt;xsd:schema&gt;.<br>
(null: 1, 285): schema_reference.4: Failed to read schema document<br>
&#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the<br>
document could not be read; 3) the root element of the document is not<br>
&lt;xsd:schema&gt;.<br>
(null: 1, 374): schema_reference.4: Failed to read schema document<br>
&#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the<br>
document could not be read; 3) the root element of the document is not<br>
&lt;xsd:schema&gt;.<br>
(null: 1, 446): schema_reference.4: Failed to read schema document<br>
&#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the<br>
document could not be read; 3) the root element of the document is not<br>
&lt;xsd:schema&gt;.<br>
(null: 1, 534): schema_reference.4: Failed to read schema document<br>
&#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the<br>
document could not be read; 3) the root element of the document is not<br>
&lt;xsd:schema&gt;.<br>
<br>
<br>
<br>
*Question: how to get rid of this? I completely google the web including<br>
user forum no answer.If it is available in the forum, my apologies for<br>
missing that info...some one could forward me to that info location.*<br>
<br>
*Test - 2*<br>
&lt;change-set xmlns=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>&#39;<br>
xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;<br>
xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a><br>
<a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd" target="_blank">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd</a>&#39;<br>

&gt;<br>
&lt;add&gt;<br>
&lt;resource source=&#39;classpath:dir1/dir2/filename.drl&#39; type=&#39;DRL&#39; /&gt;<br>
&lt;/add&gt;<br>
&lt;/change-set&gt;<br>
<br>
<br>
when i use the above changeset (grepcode drools-compiler 5.2.1<br>
Final)...after 1 minute it gives the following error message and the thread<br>
is open for ever...nothing happen.<br>
<br>
  INFO: KnowledgeDefinitionBuilder::::: changeset ==  &lt;change-set<br>
xmlns=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>&#39;<br>
xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;<br>
xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a><br>
<a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd" target="_blank">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd</a>&#39;<br>

&gt; &lt;add&gt; &lt;resource source=&#39;classpath:dir1/dir2/filename.drl&#39; type=&#39;DRL&#39; /&gt;<br>
&lt;/add&gt; &lt;/change-set&gt;<br>
(null: 1, 285): schema_reference.4:<br>
Failed to read schema document<br>
&#39;<a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd" target="_blank">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd</a>&#39;,<br>

because 1) could not find the document; 2) the document could not be read;<br>
3) the root element of the document is not &lt;xsd:schema&gt;.<br>
(null: 1, 285): cvc-elt.1: Cannot find the declaration of element<br>
&#39;change-set&#39;.<br>
<br>
<br>
*Question: I copied the schemaLocation from the src, why it is not working?<br>
please advise me?*<br>
<br>
-----<br>
with kind regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/changeset-schema-error-tp3682951p3682951.html" target="_blank">http://drools.46999.n3.nabble.com/changeset-schema-error-tp3682951p3682951.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br>