GeeCON Prague 2014*
The moose likes Other Java Products and Servers and the fly likes View Jasper Report Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "View Jasper Report" Watch "View Jasper Report" New topic
Author

View Jasper Report

Ali lorfe
Greenhorn

Joined: Jun 06, 2013
Posts: 1
Hi experts , I am trying to view Jasper Report,I put all ireport jar files and log4j jar in the class path,
still I am getting this error why !!!

This following code I used in my example

String reportSource = "report1.jrxml";
JasperReport jR = JasperCompileManager.compileReport(reportSource);
JasperPrint JP = JasperFillManager.fillReport(jR, null, conn);
JasperViewer.viewReport(JP);


the exception is

log4j:WARN No appenders could be found for logger (net.sf.jasperreports.engine.xml.JRXmlDigesterFactory).
log4j:WARN Please initialize the log4j system properly.


bala nannaka
Ranch Hand

Joined: Apr 02, 2007
Posts: 49
add appender some thing like this in log4j.xml

 
GeeCON Prague 2014
 
subject: View Jasper Report