problem in linux tomcat

0
By: Matias - matiasgel1
problem in linux tomcat
2005-12-04 19:09
hi, i have a webapp working in tomcat linux fc4, the same webapp its working fine in linux buy when i port the app to the linux i got an error when i fill the report my code is:

public class PdfClassReport {
public static final void generatePDF(ByteArrayOutputStream out, String reportFile,String outputFile, String recordPath,HashMap hm,String path) {


try
{
System.out.println("empieza la prueba con el xml");
JRXmlDataSource jrxmlds = null;
jrxmlds=new JRXmlDataSource(new ByteArrayInputStream(out.toByteArray()),recordPath);
System.out.println("test 1");
//and in the next line is the error
JasperPrint print = JasperFillManager.fillReport(
path+"SoldTickets.jasper",
hm,
jrxmlds);
System.out.println("test2");
JRPdfExporter exporter = new net.sf.jasperreports.engine.export.JRPdfExporter();
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,outputFile);
exporter.setParameter(JRExporterParameter.JASPER_PRINT,print);

exporter.exportReport();
System.out.println("Created file: " + outputFile);

}
catch (JRException e)
{
e.printStackTrace();

}
catch (Exception e)
{
e.printStackTrace();

}

}

and in my catalina.out just got this error: "(.:28758): Gtk-WARNING **: cannot open display: " and no more!!! what can be??
thanks
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 7 years 8 months ago

Answers:

No answers yet
Feedback