Jump to content

JasperReport does not fill subreport in Apache Tomcat

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Metalhead

Metalhead

    Newbie

  • Members
  • PipPip
  • 27 posts
Hi,

I have a GWT-application, and I have one subreport that does not seem to work, when I try it in Apache Tomcat. The main report does work.

When I run it from Eclipse it fills the main and subreport just fine (on a copy of the same database).

I had to add some libraries to my web-app to make it compile the reports (commons-beanutils, -digester, -collections and -logging).
Maybe I'm still missing a library or something, but if that was the case I would expect an error message...
I have tried adding all external jars from ireport to Apache, but the result was the same.

In Eclipse the report is filled using classes from gwt-dev.jar, but I can't seem to add that as library to Apache (it than just keeps complaining about missing classes, which I know are in the gwt-dev.jar).

If the generated subreport (.jasper) cannot be found, I do get an error message, so that's not the case...

Anybody any ideas how I can find out what the problem is?

#2
Metalhead

Metalhead

    Newbie

  • Members
  • PipPip
  • 27 posts
I finally found out what the problem was;
The report-query of the subreport was not correct (in combination with MySQL-version differences) -> A Date condition was used with only the year (something like; where xdate > "2010" )
That works on MySQL 5.1 but not on MySQL 4.x...

Because the report-property "When No Data" defaults to "Blank Page", the subreport never showed anything...