LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-21-2004, 03:54 PM   #1
kiwiMike
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. defa0009 Linux - General 13 01-20-2012 02:55 PM
Cannot connect to X11 window server using ":).0" as DISPLAY variable cclack Linux - Newbie 4 09-06-2007 09:32 PM
Can't connect to X11 window server suresheva31 Linux - General 0 10-19-2004 02:17 PM
Can't connect to X11 window server Checking operating system version: must be redha pmarino Linux - General 2 09-20-2004 04:18 PM
get "can't connect to X11 window server using :0.0" andytorn Linux - Newbie 3 05-09-2004 06:46 PM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration