Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2067

Error loading classes with Tomcat 7 parallel deployment

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.3.6
    • 5.3.7
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              kaosko Kalle Korhonen
              rodimusprime Pavel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: