This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Application Frameworks and the fly likes JasperReport ServletException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "JasperReport ServletException" Watch "JasperReport ServletException" New topic
Author

JasperReport ServletException

Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
Hello....

I'm using jasper report for generate a pdf report. When I run the application on localhost (windows) the pdf is generated perfectly, but when I put on fedora I catch ServletException, when I invoke



My code:



and the Action (Struts)




Thank's
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
hehehe... I solve!
The problem happen because the jasper have to access graphic interface's configurations, so they can't on Linux, because I'm using the terminal (server), so I should pass the command "-Djava.awt.headless=true" for jvm. Or you can put on JAVA_OPTS variable (jboss).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JasperReport ServletException