It seems the drools file is being validated. Try specifying the drools DTD in your drools configuration file.
On 10/3/06, gg1052 <[EMAIL PROTECTED]> wrote:
Hi.. All. I have no error. but (null: 4, 49): cvc-elt.1: Cannot find the declaration of element 'rule-set'. find message follow log message. How do i resolve? INFO - DeploymentService - Restoring service assemblies INFO - ComponentMBeanImpl - Initializing component: inputReceiver INFO - ComponentMBeanImpl - Initializing component: outputSender INFO - ComponentMBeanImpl - Initializing component: outputSender2 INFO - ComponentMBeanImpl - Initializing component: droolsRouter (null: 4, 49): cvc-elt.1: Cannot find the declaration of element 'rule-set'. INFO - JBIContainer - ServiceMix JBI Container (ServiceMix) s tarted INFO - JBIContainer - ServiceMix JBI Container (ServiceMix) s topped ====== rulebase.xml ====== <?xml version="1.0" encoding="UTF-8"?> <rule-set name="droolsRouter" xmlns="http://drools.org/rules" xmlns:java="http://drools.org/semantics/java"> <application-data identifier="jbi">org.apache.servicemix.components.drools.JbiHelper</application-data> <application-data identifier="context">javax.jbi.component.ComponentContext</application-data> <application-data identifier="deliveryChannel">javax.jbi.messaging.DeliveryChannel</application-data> <rule name="Ignore 2 message"> <parameter identifier="exchange"> <class>javax.jbi.messaging.MessageExchange</class> </parameter> <java:condition>"2".equals("idText") == false</java:condition> <java:consequence> // lets try send a message jbi.forwardToService("http://us.com", "foo:outputSender2"); </java:consequence> </rule> </rule-set> ===== servicemix.xml ===== <beans xmlns="http://xbean.org/schemas/spring/1.0" xmlns:spring="http://xbean.org/schemas/spring/1.0" xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:my="http://servicemix.apache.org/demo/" xmlns:foo="http://us.com" xmlns:drools="http://drools.org/rules"> ..... <sm:activationSpec componentName="outputSender2" service="foo:outputSender2"> <sm:component> <bean class="nca.TestPojo"/> </sm:component> </sm:activationSpec> <sm:activationSpec componentName="droolsRouter" service="foo:droolsRouter"> <sm:component> <bean class="org.apache.servicemix.components.drools.DroolsComponent"> <property name="ruleBaseResource" value="classpath:rulebase.xml" /> </bean> </sm:component> </sm:activationSpec> -- View this message in context: http://www.nabble.com/drools-cvc-elt-error-tf2373576.html#a6612876 Sent from the ServiceMix - User mailing list archive at Nabble.com.
-- Cheers, Guillaume Nodet
