Inbox
Hi, I‘m trying to work the decision table supported by Drools. I can run the supplied example in drools-example successfully. But, if I try to create my own application package and run it, I‘m getting the following error : ------------------------------ (null: 1, 292): cvc-elt.1: Cannot find the declaration of element ‘rule-set‘. Exception in thread "main" org.xml.sax.SAXParseException: no semantic module for namespace ‘http:///rules‘ (import) at org.drools.io.RuleSetReader at org.apache.xerces.parsers ce) at org.apache.xerces.impl.xs rce) at org.apache.xerces.impl.XMLNSDo own Source) at org.apache.xerces.impl.XMLDocu Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocu known Source) at org.apache.xerces.parsers at org.apache.xerces.parsers at org.apache.xerces.parsers at org.apache.xerces.parsers at javax.xml.parsers.SAXParser at org.drools.io.RuleSetReader at org.drools.io.RuleSetReader at org.drools.io.RuleBaseLoader at org.drools.io.RuleBaseLoader at org.drools.io.RuleBaseLoader at org.drools.decisiontable own Source) at com.mybusinessrule.drools ment.loadRuleBase(LimitManagement.java:39) at com.mybusinessrule.drools ment.main(LimitManagement.java:56) ------------------------------ Would appreciate if anyone can help me out. Thanks. Subir Das ReplyForward
On 10/31/05, Subir Das <subir_k_das@> wrote: > > I‘m trying to work the decision table supported by Drools. > I can run the supplied example in drools-example successfully. > > But, if I try to create my own application package and run it, I‘m getting > the > following error : > > ------------------------------ > (null: 1, 292): cvc-elt.1: Cannot find the declaration of element > ‘rule-set‘. > Exception in thread "main" org.xml.sax.SAXParseException: no semantic > module for > namespace ‘ > at org.drools.io.RuleSetReader > at org.apache.xerces.parsers Drools JARs when running LimitManagement‘s main(). The ‘import‘ declaration should be part of drools-base.jar, IIRC. - Geoffrey -- Geoffrey Wiseman ReplyForward
Geoffrey Wiseman <geoffrey.wiseman <at> > writes: Off the top of my head, this looks like your classpath is missing one of the Drools JARs when running LimitManagement‘s main(). The ‘import‘ declaration should be part of drools-base.jar, IIRC. - Geoffrey -- Geoffrey Wiseman Thanks for your mail,Geoffrey. Actually, I have figured out the problem. The ‘rules.xsd‘ file was not present in the META-INF folder. Cheers. Subir ReplyForward
On 10/31/05, Subir Das <subir_k_das@> wrote: > > Thanks for your mail,Geoffrey. > Actually, I have figured out the problem. > The ‘rules.xsd‘ file was not present in the META-INF folder. > It should be present in the META-INF of drools-base.jar; are you adding it explicitly to your own application? - Geoffrey -- Geoffrey Wiseman ReplyForward
Geoffrey Wiseman <geoffrey.wiseman <at> > writes: On 10/31/05, Subir Das <subir_k_das <at> > wrote: > > Thanks for your mail,Geoffrey. > Actually, I have figured out the problem. > The ‘rules.xsd‘ file was not present in the META-INF folder. > It should be present in the META-INF of drools-base.jar; are you adding it explicitly to your own application? - Geoffrey -- Geoffrey Wiseman Yes. Otherwise, I‘m getting that error. Subir |
|