Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-2503

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1, 1.1.1
    • 1.1.2, 1.2, 2.0.3, 2.1
    • web
    • Security Level: public (Regular issues)
    • None
    • windows and linux, jetty and tomcat

    • 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.

      Attachments

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

        Activity

          People

            vamsic Vamsavardhana Reddy
            nikla Nikla Ratinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: