RedHat Linux 7.3 and X11 window server??
I have recently posted a Struts app on a webhost running RedHat Linux 7.3.
The app is running well with the exception of all the Jasper reports. I have narrowed down the error to most likely being X11 window server related.
The current error is:
ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
The offending JSP is:
File reportFile = new File("/home/virtual/site127/fst/var/www/html/AdventureTours/reports/TourDetails.jasper");
JasperReport aReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());
try{
Map parameters = new HashMap();
String tourID = session.getAttribute("theTourID").toString();
parameters.put("TourID", tourID);
byte[] bytes = JasperManager.runReportToPdf(
aReport,
parameters,
conn
);
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();
}catch (Exception e){out.print(e);
System.out.print("In getATour Exception");
}
I am basically at wits end - does anyone have any ideas?
Cheers - Mike
|