Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-461

Class loading issue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      any java env

      Description

      If Velocity.jar is loaded from the WL classpath then it cannot load resources from the war or ear. This applies to both template resources as well as to the loader of the resources loaders themselves e.g. custom ClasspathResourceLoader couldn't be loaded when velocity.jar was loaded from the WL app claspath and the custom class was loaded from the ear.

      In my view all appearances of this.getClass().getClassLoader() should be replaced by Thred.currentThread.getContextClassLoader()

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vladg Vladimir Goncharov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: