swingx-ws
  1. swingx-ws
  2. SWINGX_WS-2

JXMapViewer is not able to load images embedded in a JAR file

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: initial
    • Fix Version/s: 1.1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      2

      Description

      The example about using local image files described in
      http://weblogs.java.net/blog/joshy/archive/2006/07/getting_started.html does not
      work if the files have been packaged as resources into a jar file (they are
      pointed by URLS starting with jar:file:/path....

      This issue can be fixed by patching Tile.java:

      265 if (LocalResponseCache.IS_CACHE_DISABLED || "file".equals(uri.getScheme())

      "jar".equals(uri.getScheme())) {

      and adding "jar" as a case that makes the if condition true.

        Activity

        Hide
        rah003 added a comment -

        Bumped to the next version.

        Show
        rah003 added a comment - Bumped to the next version.

          People

          • Assignee:
            swingx-ws-issues
            Reporter:
            fabriziogiudici
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: