Geronimo
  1. Geronimo
  2. GERONIMO-2503

Webapp classloader prefers WEB-INF/lib over WEB-INF/classes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1, 1.1.1
    • Fix Version/s: 1.1.2, 1.2, 2.0.3, 2.1
    • Component/s: web
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      windows and linux, jetty and tomcat

    • Patch Info:
      Patch Available

      Description

      Application classloader looks in WAR's WEB-INF/lib before WEB-INF/classes. This is in violation of servlet 2.4 (and 2.3) specification, 9.5 Directory Structure, which states:
      "TheWeb application class loader must load classes from the WEB-INF/ classes directory first, and then from library JARs in the WEB-INF/lib directory."

      This behaviour prevents web application from overriding classes and resources from included libraries.

      1. patch.txt
        1 kB
        Nikla Ratinen
      2. test.war
        3 kB
        Nikla Ratinen

        Activity

          People

          • Assignee:
            Vamsavardhana Reddy
            Reporter:
            Nikla Ratinen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development