<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText43420 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>
<DIV id=idOWAReplyText78132 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hello all,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I am using Drools 4.0.3.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>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.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><function return-type="boolean" name="validateDate"><BR> <parameter identifier="date" type="String" /><BR> <parameter identifier="datepattern" type="String" /><BR> <body><BR> // System.out.println(" validateDate date "+date);<BR>// System.out.println(" validateDate datepattern "+datepattern);<BR> if(date == null || date.trim().equals(""))<BR> return(true);<BR> SimpleDateFormat sdf = new SimpleDateFormat(datepattern);<BR> Date testDate = null;<BR> try{<BR> testDate = sdf.parse(date);<BR> }catch (ParseException e){<BR> return(true);<BR> }<BR> if (!sdf.format(testDate).equals(date)){<BR> return(true);<BR> }<BR> return(false);<BR> </body><BR></function></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>I am loading this <FONT face=Arial size=2>commonfunction.xml file only once in the constructor throughout the application. Also I have some specific rules for each module in my application.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>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.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Now when I am running my application I am getting the <STRONG>ClassNotFoundException </STRONG>.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Please give me advice how can I remove this exception?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I am attaching the rule file and the description of the exception.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature23189 dir=ltr>
<DIV><FONT face=Arial size=2><EM><STRONG>With Regards</STRONG></EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM><STRONG>Prateek </STRONG></EM></FONT></DIV></DIV></FONT></DIV></DIV></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000><br>
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. <br>
<br>
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.<br>
<br>
www.wipro.com<br>
</font></td></tr></table>