Hello all,
I am using Drools 4.0.3.
In my application I have one singleton class to validate the input parameters. Also I am
using one commonfunction.xml file which has all the functions for the applications e.g.
<function return-type="boolean" name="validateDate">
<parameter identifier="date" type="String" />
<parameter identifier="datepattern" type="String" />
<body>
// System.out.println(" validateDate date "+date);
// System.out.println(" validateDate datepattern "+datepattern);
if(date == null || date.trim().equals(""))
return(true);
SimpleDateFormat sdf = new SimpleDateFormat(datepattern);
Date testDate = null;
try{
testDate = sdf.parse(date);
}catch (ParseException e){
return(true);
}
if (!sdf.format(testDate).equals(date)){
return(true);
}
return(false);
</body>
</function>
I am loading this commonfunction.xml file only once in the constructor throughout the
application. Also I have some specific rules for each module in my application.
One of the module is AirlineDemo.For this module I have various rules as source and
destination can not same, departure date should be proper etc.
Now when I am running my application I am getting the ClassNotFoundException .
Please give me advice how can I remove this exception?
I am attaching the rule file and the description of the exception.
With Regards
Prateek
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