Hi Esteban, thanks for your answer.<div>I thought that the error was due to change-set declaration so I didn&#39;t investigate further before.</div><div><br></div><div>After reading your answer, I made some other experiments and I have found that the problem is the use of a &quot;relative path&quot;.</div>

<div>If I modify the change-set declaration using the absolute path of the two resources, it works.</div><div><br></div><div>So the question is: may I use a relative path declaration in my change-set file? How?</div><div>

My change-set.xml file and the two resources are all in the same directory.</div><div><br></div><div>Thanks.</div><div>Bye</div><div><br></div><div>Raf<br><br><div class="gmail_quote">2010/6/14 Esteban Aliverti <span dir="ltr">&lt;<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div>The <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">&quot;null: 4, 78): SchemaLocation: schemaLocation value = &#39;<a href="http://drools.org/drools-5.0/change-set.xsd" style="color:rgb(7, 77, 143)" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>&#39; must have even number of URI&#39;s.</span></div>



<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div><div>(null: 4, 78): cvc-elt.1: Cannot find the declaration of element &#39;change-set&#39;.&quot;  error is harmless. The agent should work anyway. </div>



</div><div>Please take a look at <a href="https://jira.jboss.org/browse/JBRULES-2377" target="_blank">https://jira.jboss.org/browse/JBRULES-2377</a>. Maybe you are experiencing that error. I need to take a look at this issue.</div>

<div>
<br>
</div><div>Best,</div></span><br><div class="gmail_quote">2010/6/14 Raf <span dir="ltr">&lt;<a href="mailto:r.ventaglio@gmail.com" target="_blank">r.ventaglio@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div></div><div class="h5">

Hi,
<div>I am trying to use a change-set file to load my DSL and DSLR resources, but I am not able to get it working.</div><div><br></div><div>My first attempt was based on the snippet I found here: <a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933" target="_blank">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933</a></div>





<div><br></div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&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;</div>





<div>            xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;</div><div>            xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>&#39; &gt;</div>





<div>   &lt;add&gt;</div><div>      &lt;resource source=&#39;file:classification.dsl&#39; type=&#39;DSL&#39; /&gt;</div><div>      &lt;resource source=&#39;file:classification.drl&#39; type=&#39;DSLR&#39; /&gt;</div><div>





   &lt;/add&gt;</div><div>&lt;/change-set&gt;</div></div><div><br></div><div>but I received the following error:</div><div>(null: 4, 78): SchemaLocation: schemaLocation value = &#39;<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>&#39; must have even number of URI&#39;s.</div>





<div><div>(null: 4, 78): cvc-elt.1: Cannot find the declaration of element &#39;change-set&#39;.</div></div><div><br></div><div>Then, I found the following old post in the mailing list: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html</a></div>





<div>where it was suggested to </div><div>&quot;<span style="font-family:verdana, geneva, helvetica, arial, sans-serif;font-size:13px;border-collapse:collapse"><span>Just replace </span><b><span>xs:<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">schemaLocation</b>=&#39;</span></b><a href="http://drools.org/drools-5.0/change-set.xsd" rel="nofollow" link="external" style="font-size:1em" target="_blank"><b><span>http://<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">drools</b>.org/<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">drools</b>-5.0/<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">change</b>-<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">set</b>.<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">xsd</b></span></b></a><b><span>&#39;</span></b><span> by </span><b><span>xs:<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">schemaLocation</b>=&#39;</span><a href="http://drools.org/drools-5.0/change-set" rel="nofollow" link="external" style="font-size:1em" target="_blank"><span>http://<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">drools</b>.org/<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">drools</b>-5.0/<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">change</b>-<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">set</b></span></a><span> <b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">drools</b>-<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">change</b>-<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">set</b>-5.0.<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">xsd</b>&#39;</span></b></span>&quot;</div>





<div><br></div><div>So I changed my file to:</div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&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;</div>





<div>            xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;</div><div>            xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a> drools-change-set-5.0.xsd&#39; &gt;</div>





<div>   &lt;add&gt;</div><div>      &lt;resource source=&#39;file:classification.dsl&#39; type=&#39;DSL&#39; /&gt;</div><div>      &lt;resource source=&#39;file:classification.dslr&#39; type=&#39;DSLR&#39; /&gt;</div><div>





   &lt;/add&gt;</div><div>&lt;/change-set&gt;</div></div><div><br></div><div>but now I receive the following errors:</div>

<div><div>(null: 4, 100): schema_reference.4: Failed to read schema document &#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.</div>





<div>(null: 4, 100): cvc-elt.1: Cannot find the declaration of element &#39;change-set&#39;.</div><div>(null: 5, 9): schema_reference.4: Failed to read schema document &#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.</div>





<div>(null: 6, 63): schema_reference.4: Failed to read schema document &#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.</div>





<div>(null: 7, 65): schema_reference.4: Failed to read schema document &#39;drools-change-set-5.0.xsd&#39;, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.</div>





</div><div><br></div><div>What am I missing?</div><div><br></div><div>Thanks.</div><div>Raf</div>
<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>
<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>
<br></blockquote></div><br></div>