We've been using Dynamic Reports directly in our Grails 1.3.7 app with great success. However, when we upgraded to Grails 2.2.4, the images are broken in the HTML view. The hyperlink generated leads to a 404, even for static content such as logos. All the other reports work fine. I am thinking the maybe the image factory servlet needs to be registered in web.xml or something like that. Does anyone have any pointers?
Images 404 in HTML report after Grails upgrade
159 views Asked by ed209 At
2
There are 2 answers
1
On
I recommend you to create a new application and to use a visual diff software like meld
in order to compare your project directory vs the new application directory. You can find that common files like BuildConfig.groovy
or Config.groovy
could to need massive corrections. There are another files that you should to review after the migration.
Here is the solution. (Thanks to Ricardo over at DynamicReports help forum!)
The image servlet must indeed be registered in /src/templates/war/web.xml configuration. We did not have to do this in Grails 1.3.7. Hope this helps someone else!