[rules-users] Error using change-set

Raf r.ventaglio at gmail.com
Mon Jun 14 08:35:38 EDT 2010


Hi Esteban, thanks for your answer.
I thought that the error was due to change-set declaration so I didn't
investigate further before.

After reading your answer, I made some other experiments and I have found
that the problem is the use of a "relative path".
If I modify the change-set declaration using the absolute path of the two
resources, it works.

So the question is: may I use a relative path declaration in my change-set
file? How?
My change-set.xml file and the two resources are all in the same directory.

Thanks.
Bye

Raf

2010/6/14 Esteban Aliverti <esteban.aliverti at gmail.com>

> Hi,
> The "null: 4, 78): SchemaLocation: schemaLocation value = '
> http://drools.org/drools-5.0/change-set.xsd' must have even number of
> URI's.
> (null: 4, 78): cvc-elt.1: Cannot find the declaration of element
> 'change-set'."  error is harmless. The agent should work anyway.
> Please take a look at https://jira.jboss.org/browse/JBRULES-2377. Maybe
> you are experiencing that error. I need to take a look at this issue.
>
> Best,
>
> 2010/6/14 Raf <r.ventaglio at gmail.com>
>
>>  Hi,
>> 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.
>>
>> My first attempt was based on the snippet I found here:
>> http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <change-set xmlns='http://drools.org/drools-5.0/change-set'
>>             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
>>             xs:schemaLocation='
>> http://drools.org/drools-5.0/change-set.xsd' >
>>    <add>
>>       <resource source='file:classification.dsl' type='DSL' />
>>       <resource source='file:classification.drl' type='DSLR' />
>>    </add>
>> </change-set>
>>
>> but I received the following error:
>> (null: 4, 78): SchemaLocation: schemaLocation value = '
>> http://drools.org/drools-5.0/change-set.xsd' must have even number of
>> URI's.
>> (null: 4, 78): cvc-elt.1: Cannot find the declaration of element
>> 'change-set'.
>>
>> Then, I found the following old post in the mailing list:
>> http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html
>> where it was suggested to
>> "Just replace *xs:schemaLocation='**http://drools.org/drools-5.0/change-
>> set.xsd* <http://drools.org/drools-5.0/change-set.xsd>*'* by *xs:
>> schemaLocation='http://drools.org/drools-5.0/change-set drools-change-set
>> -5.0.xsd'*"
>>
>> So I changed my file to:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <change-set xmlns='http://drools.org/drools-5.0/change-set'
>>             xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
>>             xs:schemaLocation='http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd' >
>>    <add>
>>       <resource source='file:classification.dsl' type='DSL' />
>>       <resource source='file:classification.dslr' type='DSLR' />
>>    </add>
>> </change-set>
>>
>> but now I receive the following errors:
>> (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>.
>> (null: 4, 100): cvc-elt.1: Cannot find the declaration of element
>> 'change-set'.
>> (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>.
>> (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>.
>> (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>.
>>
>> What am I missing?
>>
>> Thanks.
>> Raf
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100614/216d6810/attachment.html 


More information about the rules-users mailing list