Hi All:

 

I’m running drools expert and guvnor on a single machine that runs behind an authentication-required HTTP proxy to the outside world. I’m fetching rulesets from the guvnor URL using the KnowledgeAgent. The loading of each URL takes a consistent 3 minutes and it appears that the delay may be from trying to fetch the xml schema which does not succeed because the request must go to jboss thru a proxy. I get these two messages in the log file:

 

(null: 1, 290): 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, 290): cvc-elt.1: Cannot find the declaration of element 'change-set'.

 

 

After the delay, the parsing works correctly and the KnowledgeAgent creates the KnowledgeBase correctly. Here is an example of the change set being passed to the KnowledgeAgent:

 

<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='http://localhost:8080/arcotadmin/org.drools.guvnor.Guvnor/package/pkg1/LATEST.drl' type='DRL' basicAuthentication='enabled' username='usr1' password='123456' />    </add> </change-set>

 

Questions:

1.       Can I tell KnowledgeAgent to use a local file for the schema and thereby bypass the external lookup altogether? What would the syntax for that look like?

2.       Is there a way to provide proxy information to KnowledgeAgent or drools expert as a whole that includes authentication credentials?

 

Thanks,

-Robert