[rules-users] changeset schema error

domingo sprabakkar at gmail.com
Mon Jan 23 15:43:59 EST 2012


I have some issues using changeset... 

*Test - 1*
<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
drools-change-set-5.0.xsd'>  
<add>  
<resource source='classpath:dir1/dir2/filename.drl' type='DRL' />  
</add>  
</change-set>


when i use the above changeset (thanks to user forum)...the program works
fine no issues but i got the following warning messages...


(null: 1, 201): 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: 1, 201): cvc-elt.1: Cannot find the declaration of element
'change-set'. 
(null: 1, 207): 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: 1, 285): 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: 1, 374): 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: 1, 446): 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: 1, 534): 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>. 



*Question: how to get rid of this? I completely google the web including
user forum no answer.If it is available in the forum, my apologies for
missing that info...some one could forward me to that info location.*            

*Test - 2*
<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
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'
>  
<add>  
<resource source='classpath:dir1/dir2/filename.drl' type='DRL' />
</add>  
</change-set>


when i use the above changeset (grepcode drools-compiler 5.2.1
Final)...after 1 minute it gives the following error message and the thread
is open for ever...nothing happen.

  INFO: KnowledgeDefinitionBuilder::::: changeset ==  <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
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'
> <add> <resource source='classpath:dir1/dir2/filename.drl' type='DRL' /> 
</add> </change-set>
(null: 1, 285): schema_reference.4: 
Failed to read schema document
'http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.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: 1, 285): cvc-elt.1: Cannot find the declaration of element
'change-set'. 


*Question: I copied the schemaLocation from the src, why it is not working?
please advise me?*

-----
with kind regards,

--
View this message in context: http://drools.46999.n3.nabble.com/changeset-schema-error-tp3682951p3682951.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list