Hello Sanda; You can see my code. I am setting the ContentType "application/pdf" but I am getting the same error. The same code works with straight JSP and Tomcat. Unfortunately, it does not work in Weblogic :( Here is my environment info: - JasperReports 4.0.2 - Seam 2.2 - Weblogic 11g - Firefox 4.0 Thanks, Ekrem Code:Here is my code:public void createReport(String reportName, Map parameters){ FacesContext context = FacesContext.getCurrentInstance(); InputStream inputStream = null; Connection con = this.getHibernateSession().connection(); try { inputStream = this.getClass().getResourceAsStream("/" + reportName + ".jasper"); HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse(); ServletOutputStream outputStream = response.getOutputStream(); JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream, parameters, con);// JasperViewer.viewReport(jasperPrint, true); byte[] pdfReport = JasperExportManager.exportReportToPdf(jasperPrint); response.setContentType("application/pdf"); response.addHeader("Content-Disposition", "attachment;filename=report.pdf"); response.setContentLength(pdfReport.length); outputStream.write(pdfReport); outputStream.flush(); outputStream.close(); context.responseComplete(); } catch (Exception e) { e.printStackTrace(); } finally { if (con != null) { try { con.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }}