iReport不起作用(org / apache / commons / digester / Digester)

时间:2012-01-21 19:56:34

标签: jasper-reports ireport zk

我正在使用ZK框架5.0.10 CE,我的报告是用iReport 4.0.0编译的;我使用java中的下一个代码:

private void showCuadroComparativo(){
String jdbcSampleReportFile ="/rpt/rptCuadroComparativo3.jrxml";


try {
  Map parameters=new HashMap();
  parameters.put("pIdReq", 3);
  parameters.put("p1", "PERU bitz");
  parameters.put("p2", "T & B");
  parameters.put("p3", "M & H");
  parameters.put("pNombreInstitucion", "ARCHIVO GENERAL DE LA NACION");

  Class.forName("com.mysql.jdbc.Driver");
    Connection conn = (Connection) DriverManager.getConnection ("jdbc:mysql://localhost:3306/pbz_logistica?user=root&password=bitz");


  JasperDesign design =JRXmlLoader.load(jdbcSampleReportFile);
  JasperReport report =JasperCompileManager.compileReport(design);
  JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
  JasperExportManager.exportReportToPdfFile(print,"sample.pdf");

  conn.close();
} 
catch (JRException ex) {}
catch (SQLException ex) {}    
catch (ClassNotFoundException ex) {}    

}

当我运行它时,它会抛出以下消息:org / apache / commons / digester / Digester。

任何建议,提前谢谢

1 个答案:

答案 0 :(得分:1)

尝试添加

 commons-digester-1.7.jar 

将文件发送到您的WEB-INF lib文件夹