[rules-dev] Missing package name for rule package

Mark Proctor mproctor at codehaus.org
Fri Aug 10 10:36:32 EDT 2007


This is a user Question, please ask it on the Drools User mailing list.

Mark
pns77 wrote:
> Hi,
>
> Am new to Drools. Trying to use the Java version of Drools with rules in an
> xml file.
>
> The following is the code i use
>
> "....
> InputStreamReader isr = new
> InputStreamReader(this.getClass().getResourceAsStream("/rules/test/" +
> rulesFile));
> System.out.println("<<<<<<<<<<<< After getting InputStream
> Reader"+isr.toString());
> rules = RuleBaseLoader.getInstance().loadFromReader(isr);
> .."
> Have included the following jar files in the classpath.
> 1) drools-compiler-4.0.0.jar
> 2) drools-core-4.0.0.jar
> 3) antlr-runtime-3.0.jar
> 4) core-3.2.3.v_686_R32x.jar
> 5) mvel14-1.2rc1.jar
>
> Have placed the rules in an xml file. The xml file is placed in the
> folder/package "rules/test". When the application tries to call the
> "loadFromReader" method, after getting the InputStreamReader,  i get the
> following exception
>
> [8/10/07 13:16:24:173 GMT] 00000045 SystemErr     R
> org.drools.compiler.PackageBuilder$MissingPackageNameException: Missing
> package name for rule package.
>
> Would appreciate if someone could guide me on this.
>
> I am using jdk1.4 with RAD6.0.
>   




More information about the rules-dev mailing list