Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1573

"Image not found" when using Java embedding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Cannot Reproduce
    • 0.95
    • None
    • image/unqualified
    • None
    • Operating System: Windows 2000
      Platform: PC
    • 45770

    Description

      I tested FOP 0.95 after migrating the XSL files from 0.20.5 and all went very well when tested with the fop.bat included with FOP 0.95 - including the SVG and GIF images.

      Then I started migrating the Java application from FOP 0.20.5 to FOP 0.95 and now all the images are missing. The baseUrl is set up correctly in the used fopUserAgent (I tried both "file:///" + oldFopBaseDir and "file:/" + oldFopBaseDir leading to "file:///C:\temp", "file:/C:\temp"). As the reports also include other XSL files with relative URLs, the userAgents baseURL seems basically to work. So I wonder why FOP 0.95 can't find the images:

      Image not found: images/top.svg
      Image not found: images/singlearr.gif

      Again: the same baseDir used to create the report with fop.bat works including all the images. So, it's not a bug with the XSL/image files but with the Java embedding config.

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            mhilpert@gmx.de M.H.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: