Forrest
  1. Forrest
  2. FOR-1133

PDF don't display images in deployed WAR file on Tomcat

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8
    • Fix Version/s: None
    • Component/s: Plugin: output.pdf
    • Labels:
      None
    • Urgency:
      Normal

      Description

      Hi,

      In order to make this discussion as an official issue (http://www.nabble.com/PDF-not-working-correctly-in-deployed-WAR-file-on-Tomcat-td15295911.html) i post a JIRA.

      Bug information :

      Tools : apache-tomcat-6.0.18 + apache-forrest-0.8 + java-1.6
      OS : Windows XP and CentOs (a RedHat)

      Step to reproduce
      1/ Download apache-forrest-0.8 (Actual release)
      2/ Downlaod apache-tomcat-6-0.18 (Actual release)
      3/ Use java 1.6 (Actual release)
      4/ forrest seed (To create sample forrest site)
      5/ forrest war (to create WAR sample forrest site)
      6/ put the .war in the tomcat webapps folder
      7/ Launch sample forrest application from tomcat
      8/ Go to any page with any image of this war sample forrest site
      9/ Try to see it in PDF version
      10/ See that you don't have image displayed


      The issue is that, images are not displayed .. Any image (gif, png, jpg). This issue is only in case of a deployed WAR, that works fine in jetty.

      Here are some clues about the issue :


      When i take a look in the graphical section of the .fo file I can see that :
      fo:external-graphic src="context:///project/src/documentation/content/xdocs/mySpecificProject/conception/specificModule/fonctionnal/../resource/anImage.jpg"

      And when I take a look in my WEB-INF/logs/core.log i can see that :
       http-8080-1/ExternalGraphic: Error while creating area : Error with image URL: context:/project/src/documentation/content/xdocs/mySpecificProject/conception/specificModule/fonctionnal/../resource/anImage.jpg (No such file or directory) and no base URL is specified


      I think that is a serious issue, and I would like your opinion about it.

      Thanks

        Activity

        Antoine ROBERT created issue -
        Hide
        Ross Gardler added a comment -
        This is an issue with a version of Forrest that has been in production for quite some time. The problem would therefore appear to be with the specific configuration.

        Can you please report what happens when you do forrest run and retrieve a PDF, can you also tell us what the fo:external-graphic is when doing forrest run.

        Testing a built war file in a diferent servlet engine (e.g. Jettry) would also be informative.

        Please also test using 0.9-dev so that we can ascertain if this is a problem with 0.8 only or also a problem with SVN head.

        On my configuration I am unabe to reproduce this problem, so the more information you can provide us the more likely we are to be able to help you fix the problem.

        I'm reducing the priority to major as this issue needs to be confirmed as a problem in Forrest rather than a problem in your configuration (although I note you have tested on multiple operating systems). I'm also reducing the urgency to Normal, this means active devs are likely to help you solve the problem, but that they are not likely to do the work for you (i.e. an existing dev is not being affected by the issue)
        Show
        Ross Gardler added a comment - This is an issue with a version of Forrest that has been in production for quite some time. The problem would therefore appear to be with the specific configuration. Can you please report what happens when you do forrest run and retrieve a PDF, can you also tell us what the fo:external-graphic is when doing forrest run. Testing a built war file in a diferent servlet engine (e.g. Jettry) would also be informative. Please also test using 0.9-dev so that we can ascertain if this is a problem with 0.8 only or also a problem with SVN head. On my configuration I am unabe to reproduce this problem, so the more information you can provide us the more likely we are to be able to help you fix the problem. I'm reducing the priority to major as this issue needs to be confirmed as a problem in Forrest rather than a problem in your configuration (although I note you have tested on multiple operating systems). I'm also reducing the urgency to Normal, this means active devs are likely to help you solve the problem, but that they are not likely to do the work for you (i.e. an existing dev is not being affected by the issue)
        Ross Gardler made changes -
        Field Original Value New Value
        Urgency Urgent Normal
        Priority Critical [ 2 ] Major [ 3 ]
        Hide
        Antoine ROBERT added a comment -
        Thanks for you answer Ross,

        And I agree with you about reducing priority of this issue.

        From now, I'm going to test what you ask to me to test, I will give you a complete report about what happens !

        Nevertheless, I think it's important to take care about the fact that people who would like to try Forrest in Webapp mode today (Or since tomcat 6 released) will not be fully satisfied with forrest whereas forrest is a good product !

        Anyway, I will test in others configurations.
        Show
        Antoine ROBERT added a comment - Thanks for you answer Ross, And I agree with you about reducing priority of this issue. From now, I'm going to test what you ask to me to test, I will give you a complete report about what happens ! Nevertheless, I think it's important to take care about the fact that people who would like to try Forrest in Webapp mode today (Or since tomcat 6 released) will not be fully satisfied with forrest whereas forrest is a good product ! Anyway, I will test in others configurations.
        Hide
        Antoine ROBERT added a comment -
        Ok,

        I did my tests, here is the result of my test : https://issues.apache.org/jira/browse/FOR-1074

        At current time, I can't make forrest work on Tomcat 6, neither forrest0.8, nor forrest 0.9-dev

        Hope my posts will help you :)
        Show
        Antoine ROBERT added a comment - Ok, I did my tests, here is the result of my test : https://issues.apache.org/jira/browse/FOR-1074 At current time, I can't make forrest work on Tomcat 6, neither forrest0.8, nor forrest 0.9-dev Hope my posts will help you :)
        Hide
        Antoine ROBERT added a comment -
        I just updated my tests here:

        https://issues.apache.org/jira/browse/FOR-1074

        And I made forrest work into tomcat 6 (By changing code into webapp.xml ant file)

        And Yes images are well displayed in PDF with this version !

        Thanks and good night :) People are waiting for me to drink beer !
        Show
        Antoine ROBERT added a comment - I just updated my tests here: https://issues.apache.org/jira/browse/FOR-1074 And I made forrest work into tomcat 6 (By changing code into webapp.xml ant file) And Yes images are well displayed in PDF with this version ! Thanks and good night :) People are waiting for me to drink beer !

          People

          • Assignee:
            Unassigned
            Reporter:
            Antoine ROBERT
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development