title: Exception in Dynamic Report
body: <p>Hi I am trying to generate dynamic report in<b> NetBeans7 IDE, java6, glassfish3.2 environment.</b>
  I am creating project using<b> java> web application.</b>  <b> I used below jars</b><br></p>
  
  <p>commons-collections-3.2.1<br>
  commons-digester-2.0<br>
  dynamicreports-1.3.0<br>
  dynamicreports-adhoc-4.0.1<br>
  dynamicreports-core-4.0.1<br>
  itext-2.1.7<br>
  jasperreports-6.1.0<br>
  commons-logging-1.2<br>
  commons-logging-1.2-javadoc<br>
  common-lang3.jar<br></p>
  
  <p>but I am getting <b>
  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/Validate
  </b><br><br>
  I investigate the issue and find that 
  I have to add <br>
  <b>
  1)common-lang3.jar <br>
  2)and common-lang3.jar is missing inside WEB-INF>lib ,<br>
  </b><br>
  I added mentioned jar and
  it is also available in WEB-INF>lib.
  but still I am facing same issue.</p>
  
  <p>find the below exception while running java file</p>
  
  <p>run:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/Validate
      at net.sf.dynamicreports.report.base.component.DRList.setType(DRList.java:78)
      at net.sf.dynamicreports.report.base.component.DRList.&lt;init&gt;(DRList.java:50)
      at net.sf.dynamicreports.report.base.DRBand.&lt;init&gt;(DRBand.java:41)
      at net.sf.dynamicreports.report.base.DRReport.init(DRReport.java:113)
      at net.sf.dynamicreports.report.base.DRReport.&lt;init&gt;(DRReport.java:97)
      at net.sf.dynamicreports.report.builder.ReportBuilder.&lt;init&gt;(ReportBuilder.java:60)
      at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.&lt;init&gt;(JasperReportBuilder.java:95)
      at net.sf.dynamicreports.report.builder.DynamicReports.report(DynamicReports.java:65)
      at net.sf.dynamicreports.examples.adhoc.DynamicReporting.main(DynamicReporting.java:20)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.Validate
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 9 more
  Java Result: 1
  BUILD SUCCESSFUL (total time: 2 seconds)
  </code></pre>
  
  <p><b>my code:</b><br></p>
  
  <pre><code>public class DynamicReporting{
      public static void main(String args[]) throws DRException, FileNotFoundException{
          JasperReportBuilder report= DynamicReports.report();
          report.toPdf(new FileOutputStream(new File("c:/report.pdf")));
          System.out.print("Report generated");
      }
  }
  </code></pre>
  
  <p>can any one suggest what I am missing.Thanks in advance</p>