• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JasperReport ServletException

 
Luciano A. Pozzo
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic