I am getting error in deploying drools su. Error is
org.drools.CheckedDroolsException: There were errors in the rule source: Rule
Compilation error
Rule Compilation error
Rule Compilation error The type java.lang.Object cannot be resolved. It is
indirectly referenced from required .class files
Bean
-------
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:drools="http://servicemix.apache.org/drools/1.0"
xmlns:testMe="http://servicemix.apache.org/testme2">
<drools:endpoint service="testMe:DroolFinalService"
endpoint="DroolsEndPoint2"
ruleBaseResource="classpath:router.drl"
/>
</beans>
Drl file (No package , kept in resource folder)
------------------
package org.apache.servicemix.drools
import org.apache.servicemix.drools.model.Exchange;
global org.apache.servicemix.drools.model.JbiHelper jbi;
rule "Unspecified id"
when
me : Exchange( status == Exchange.ACTIVE, in : in != null )
eval( in.xpath("/test/@id <= 0") )
then
jbi.fault( "<fault>Id must be > 0</fault>" );
end
rule "Route to service::http://servicemix.apache.org/test2/reciverservice"
when
me : Exchange( status == Exchange.ACTIVE, in : in != null )
eval( in.xpath("/test/@id = 1") )
then
jbi.route( "service::http://servicemix.apache.org/test2/reciverservice" );
end
rule "Route to service::http://servicemix.apache.org/test2/SecondRervicer"
when
me : Exchange( status == Exchange.ACTIVE, in : in != null )
eval( in.xpath("/test/@id = 2") )
then
jbi.route( "service::http://servicemix.apache.org/test2/SecondRervicer");
end
-----------------------------------------------------------------------------------------------------------
Error
------------------
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token/>
<loc-message>org.drools.CheckedDroolsException: There were errors in the
rule source: Rule Compilation error
Rule Compilation error
Rule Compilation error The type java.lang.Object cannot be resolved. It is
indirectly referenced from required .class files
Rule Compilation error
</loc-message>
<stack-trace><![CDATA[javax.jbi.JBIException:
org.drools.CheckedDroolsException: There were errors in the rule source: Rule
Compilation error
Rule Compilation error
Rule Compilation error The type java.lang.Object cannot be resolved. It is
indirectly referenced from required .class files
Rule Compilation error
at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:128)
at
org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
----------------------------------------------------------------------------------------------------------
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.