As the error message states, you probably forgot to define a package name in your DRL files.
[]s Edson 2007/9/24, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi > > In one of my program i am getting the following erroe message > > > Exception in thread "main" > *org.drools.compiler.PackageBuilder$MissingPackageNameException*: Missing > package name for rule package. > > at org.drools.compiler.PackageBuilder.validatePackageName( > *PackageBuilder.java:294*) > > at org.drools.compiler.PackageBuilder.addPackage( > *PackageBuilder.java:226*) > > at org.drools.compiler.PackageBuilder.addPackageFromDrl( > *PackageBuilder.java:160*) > > at org.drools.compiler.RuleBaseLoader.loadFromReader( > *RuleBaseLoader.java:38*) > > at stockoffer.BusinessLayer.loadRules( > *BusinessLayer.java:47*) > > at stockoffer.BusinessLayer.evaluateStockPurchase( > *BusinessLayer.java:60*) > > at stockoffer.Tempclass.main( > *Tempclass.java:22*) > > > > So please send me the solution for this error. > > Thanks. > > The information contained in this electronic message and any attachments > to this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you are > not the intended recipient, you should not disseminate, distribute or copy > this e-mail. Please notify the sender immediately and destroy all copies of > this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > www.wipro.com > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users