Hi,<div>The <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">"null: 4, 78): SchemaLocation: schemaLocation value = '<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank" style="color: rgb(7, 77, 143); ">http://drools.org/drools-5.0/change-set.xsd</a>' must have even number of URI's.</span></div>
<div><span class="Apple-style-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 'change-set'." 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">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"><<a href="mailto:r.ventaglio@gmail.com">r.ventaglio@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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><?xml version="1.0" encoding="UTF-8"?></div><div><change-set xmlns='<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>'</div>
<div> xmlns:xs='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>'</div><div> xs:schemaLocation='<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>' ></div>
<div> <add></div><div> <resource source='file:classification.dsl' type='DSL' /></div><div> <resource source='file:classification.drl' type='DSLR' /></div><div>
</add></div><div></change-set></div></div><div><br></div><div>but I received the following error:</div><div>(null: 4, 78): SchemaLocation: schemaLocation value = '<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>' must have even number of URI's.</div>
<div><div>(null: 4, 78): cvc-elt.1: Cannot find the declaration of element 'change-set'.</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>"<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>='</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>'</span></b><span> by </span><b><span>xs:<b style="background-color:rgb(255, 255, 102);background-repeat:initial initial">schemaLocation</b>='</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>'</span></b></span>"</div>
<div><br></div><div>So I changed my file to:</div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><change-set xmlns='<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>'</div>
<div> xmlns:xs='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>'</div><div> xs:schemaLocation='<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' ></div>
<div> <add></div><div> <resource source='file:classification.dsl' type='DSL' /></div><div> <resource source='file:classification.dslr' type='DSLR' /></div><div>
</add></div><div></change-set></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 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
<div>(null: 4, 100): cvc-elt.1: Cannot find the declaration of element 'change-set'.</div><div>(null: 5, 9): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
<div>(null: 6, 63): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
<div>(null: 7, 65): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
</div><div><br></div><div>What am I missing?</div><div><br></div><div>Thanks.</div><div>Raf</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><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>