Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird problem with JasperReports in web application

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
Hello everyone,

I'm having this weird problem with JasperReports. I have a web application that generates reports in the default way (showing it on a swing window). I tested it on the server and it was working just fine.
Then, I went to one of the client machines to test the reports. I clicked on the link, no error showed, like if things were working just fine, but the report did not open. I kept trying, when I realized, astonished, that the report windows were opening on my server machine, and not on the client machine I was requesting them from!
Has anyone seen this happen? I suppose it's because of some wrong settings or stuff.
Here's how I call my reports:
Code:
        JasperReport jasperReport = JasperManager
                .loadReport(up.getPathAplicacao() + "/WEB-INF/classes/relatorios/Rel_mp_falta_op.jasper");
        
         RelatorioMPNecessariaDataSource ds = 
                new RelatorioMPNecessariaDataSource(lista);
        
        JasperPrint impressao = JasperFillManager.fillReport(jasperReport, parametros, ds);
        
        JasperViewer viewer = new JasperViewer(impressao, false);
        viewer.show();


My server runs on a SUSE Linux 9.3 box, and all client machines run Windows XP.
I'm using java 5.

Thank you all for helping.
 
I expect it to appear not in a web page, but in a frame just like it already works on my server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top