Irerport+eclipse+tomcat

0

Hi everybody,

i have a problem with  tomcat,

The  report in eclipse works fine but when i compile the sw, in tomcat everithing's works but the report not,  tomcat's log says file or folder not found but the position it's ok i don't really konw how can i do.

 

PLZZZZ help me 

Thank's a million

marlui89's picture
Joined: Nov 11 2014 - 1:28am
Last seen: 1 year 2 months ago

2 Answers:

1

If you're using eclipse + Tomcat, use Jaspersoft Studio instead of iReports. iReports is based on Netbeans while Jaspersoft Studio is based on eclipse.

 

Also, better to attach your log file in you're questioning about an error.

hozawa's picture
66670
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 year 5 months ago
0

Thaks for ur answare,

ok i try to explain my situation cause when i compile my  J-EE project and put everything in tomcat's weppaps it's all ok but  the report not, i mean the class generate the pdf report and there aren't error in tomcat log but they don't display the report.

In particolar this is the function that i use in Java for diplay that :

 

 try {

          Desktop desktop = null;

          if (Desktop.isDesktopSupported()) {

          desktop = Desktop.getDesktop();

          }

 

          desktop.open(new File(JASPER_REPORT_FOLDER_EXIT + Name_of_report + ".pdf"));

         

          } catch (IOException ioe) {

          ioe.printStackTrace();

          } catch (IllegalArgumentException n){

          return;

          }

 

 

can u help me??... if u need more detail i'll post it 

Thnks a million 

marlui89's picture
Joined: Nov 11 2014 - 1:28am
Last seen: 1 year 2 months ago
Feedback