Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-1133

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8
    • None
    • Plugin: output.pdf
    • None
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            arobert Antoine ROBERT
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: