[jboss-user] [JBoss Seam] - Re: Generation of jasper reports in seam

jazir1979 do-not-reply at jboss.com
Wed May 23 06:28:55 EDT 2007


Sorry, I can't be much help with that, I've never seen anything like it.  I'm running my query in my own code and using a custom data source, so I've never dealt with these executer factory classes..  This seems to be a pure Jasper question, not really about using Jasper with Seam, so you may have more luck asking elsewhere.

One thing that you could try is compiling the report first using the jrc ant target instead of compiling it when you use it in your app.  You really should be doing that anyway.

good luck

"d.solasa" wrote : Hi Daniel..
  | iTried to implement ur code but I am getting the exception as 
  | 12:18:41,966 INFO [JasperReporter] Exceptionnet.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports
  | ngine.JRException: Class "net.sf.jasperreports.engine.query.JRJdbcQueryExecuterFactory" should be compatible with "net.sf.jasperreports.engine.query.JRQue
  | ExecuterFactory" even when i tried to compile my report .so even i am unable to get the print object.
  | my code snippet is:
  |  InputStream input = this.getClass().getClassLoader().getResourceAsStream(reportName);
  | JasperDesign design = JRXmlLoader.load(input);
  | JasperReport report = JasperCompileManager.compileReport(design);
  | InitialContext initialContext = new InitialContext();
  | DataSource ds = (DataSource) initialContext.lookup("java:/claims");
  | conn = ds.getConnection();
  | JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
  | String fileName = "D:/downloads/ireport/" + showType;
  | OutputStream output = new FileOutputStream(new File(fileName));
  | JasperExportManager.exportReportToPdfStream(print, output); 
  | 
  | plz help me

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047855#4047855

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047855



More information about the jboss-user mailing list