aspose file tools*
The moose likes Other Open Source Projects and the fly likes Jasper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper" Watch "Jasper" New topic
Author

Jasper

Richard Mart´┐Żnez
Greenhorn

Joined: Apr 09, 2008
Posts: 2
Hi,

Urgent!!!

I have a problem, when I run a JasperReport's report at the preview view and close the window, it stop the Tomcat . I am testing from Eclipse with RAD (which have the tomcat plug in), but when I close the JasperReport preview window, the tomcat automatically stop!!!.

How can I avoid that the Jasper "turn off" the Tomcat?

Thanks in advance.
trilcito
Richard Mart´┐Żnez
Greenhorn

Joined: Apr 09, 2008
Posts: 2
I found out the fix:

Error:
JasperDesign jasperDesign = JRXmlLoader.load(reportFile);
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
Connection conn = HelperDAO.getConnectionDS();
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
JasperViewer.viewReport(jasperPrint);

Solution
Change: JasperViewer.viewReport(jasperPrint);
for: JasperViewer.viewReport(jasperPrint, false);

All fixed.
 
 
subject: Jasper
 
Similar Threads
tomcat setup
Jasper report view issue when deployed on tomcat
JasperReport - Stop Tomcat
Excel PrintPreview shows fonts in different colour
Print Preview instead of print page