Again, are you sure the resource you want to use is reachable by your classloader?
http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html#getResource(java.lang.String)  


Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Jan 12, 2012 at 3:39 PM, srinivasasanda <srinivasasanda@gmail.com> wrote:
Hi Esteban,
Thank you so much for your quick Response.
Here ruleFile is a .drl file and i printed the file name before this
statement.
"URL resource = this.getClass().getResource(ruleFile);"


Thanks

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-add-Packages-to-RuleBase-tp3653477p3653835.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users