Error when deploying war files with jasper files to the server

0

I am developing a Java web application that contains reports made in ireport. when running inside the development environment it works fine, but when uploading it to the tomcat server, I run the application (WAR) from the server it does not work the report part I get the following error:

Should I upload the report file that is jasper to the tomcat server? or how would you solve the error?

    
asked by Ritzon Sifuentes 10.04.2017 в 04:52
source

2 answers

2

It is giving you an error because you have a fixed route to the report, there you have two alternatives

  • Upload it to the war I recommend that you put it in the web-inf directory so that it does not get downloaded directly but if it is executed if you use maven do not forget that you will have to put it as a resource

  • That you put it in a path in your server that is repeated in your local and in the server

  • The first one forces you to deploy if you change reports for small systems this does not matter.

    The second one is better because it is the opposite of the first one

        
    answered by 10.04.2017 в 05:02
    0

    You must place the .jasper in the resource folder.

    The next page describes how to do it.

    resources

        
    answered by 11.04.2017 в 05:59