This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

 
Consider Paul's rocket mass heater.
 
subject: View Jasper Report
 
Similar Threads
Help me with the calling of jasper reports through java code
Jasper Report and JAR file
Cannot export PDF File (Jasper reprting)
Not able to take export backup of Jasper reports
How to call login.jsp in eclipse