Never mind.  I figured it out.  It just meant including some other jars
in the classpath.

> -----Original Message-----
> From: Karr, David 
> Sent: Thursday, November 17, 2005 12:33 PM
> To: [email protected]
> Subject: [spam]::[drools-user] How to actually resolve "no 
> semantic module for namespace" error
> 
> 
> I'm piecing together a POC of Drools using the HelloWorld 
> Java example. I took the DRL file for this and I'm slowly evolving it.
> 
> The beginning of my DRL file is this:
> ----------------------
> <?xml version="1.0"?>
> 
> <rule-set name="NACVEngine"
>           xmlns="http://drools.org/rules";
>           xmlns:java="http://drools.org/semantics/java";
>           xmlns:xs="http://www.w3.org/2001/XMLSchema-instance";
>           xs:schemaLocation="http://drools.org/rules rules.xsd
>                              http://drools.org/semantics/java 
> java.xsd">
> ----------------------
> 
> When I first executed the code to load the RuleBase, I got this
> (edited):
> 
> ------------------
> (file:.../nacvengine.drl: 8, 74): cvc-elt.1: Cannot find the 
> declaration of element 'rule-set'.
> org.xml.sax.SAXParseException: no semantic module for 
> namespace 'http://drools.org/rules' (import)
>       at
> org.drools.io.RuleSetReader.startElement(RuleSetReader.java:558)
>       at 
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkno
> wn Source)
> ------------------
> 
> At that point, I went into the Drools source tree (I didn't 
> find it in the binary release) and copied "rules.xsd" and 
> "java.xsd" to the same directory as my DRL file.  That only 
> fixed the first error, about "Cannot find the declaration 
> ...".  I'm still left with the SMF error. I googled for that 
> error message and I found the entry in the Drools FAQ for 
> this.  However, from the info in the FAQ entry, I don't 
> understand how to fix this.  The implication is that I'm not 
> including the "drools-base dependency", but I don't know how 
> to do that.
> 

Reply via email to