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

Class loading issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: