Jump to content

Jasper report : invalid path for subreports and resources

Recommended Posts

I have 2 jasperserver, I exported the report from the first one and imported them on the second one. But when i tried to edit my report using rest service, I have 400 BAD REQUEST because all my subreport path where replaced by repo:subreportName.jrxml.

In my 2 servers I have the same folder hierarchy :


  • organisation
    • project
      • report folder 1
        • report 1
        • sub report 1
        • sub report 2
      • report folder 2 ...

I tried to overwrite the subreports path to have something more global but all my tentative didn't worked. Here a list of all my tentative


If someone have any clue to how I can solve this issue, he would have all my thanks.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

In my case, I have the subreports in a folder called subreports, so follow the next path


I have placed the address parameter as:

<parameter name="DIR_SERVER_SUBREPORTS" class="java.lang.String" isForPrompting="false">

So in the subreport I only have to place the parameter + the report

$P{DIR_SERVER_SUBREPORTS} + "subreport.jrxml"

Note: Do not use - to separate words, as this is not recognized by jasperserver, use _ instead.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...