Tapestry 5
  1. Tapestry 5
  2. TAP5-2067

Error loading classes with Tomcat 7 parallel deployment

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.6
    • Fix Version/s: 5.3.7
    • Component/s: None
    • Labels:
      None

      Description

      When trying to deploy tapestry app using tomcat 7 parallel deployment (which demands to name app dir like myapp##version) there is an FileNotFoundException when loading AppModule file. The reason is, that path to app dir gets urlencoded whith those ## looking like %23%23.
      In PlasticInternalUtils there is already code dealing with urlencoded spaces

      private static InputStream getStreamForPath(....

      if (url.getProtocol().equals("file"))

      { String urlPath = url.getPath(); String decoded = urlPath.replaceAll("%20", " "); return new FileInputStream(new File(decoded)); }

      could it be extended (or better generalised) to handle all urlencoded problems? I think it is really easy to fix and is very annoying not being able to use parallel deployment. I could even provide a patch if you think this issue is worth fixing.

        Issue Links

          Activity

            People

            • Assignee:
              Kalle Korhonen
              Reporter:
              Pavel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development