Please check very carefully that the file name is correctly spelt. The / at the beginning may cause the JVM to look in the wrong place. Failure to retrieve the URL will cause getResource() to return null, and that may cause the NullPointerException.
Yes I have checked the file name, Its correct. But can you tell me how to compile the drl file? Nothing happens when I compile it even with errors
Joined: Mar 22, 2005
I'm not familiar with Drools, but what do you expect to happen? I wouldn't think that compiling a rules file produces any visible output. Maybe the Drools API has some way of figuring out if there were compilation problems?
Moving to a more appropriate forum where Drools would be discussed.