[rules-dev] Missing package name for rule package

pns77 pn.subramanian at gmail.com
Fri Aug 10 10:16:44 EDT 2007


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.
-- 
View this message in context: http://www.nabble.com/Missing-package-name-for-rule-package-tf4248947.html#a12092078
Sent from the drools - dev mailing list archive at Nabble.com.




More information about the rules-dev mailing list