Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3879

war file has javax.servlet-api jar bundled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0, 6.0
    • Component/s: Build
    • Labels:
      None

      Description

      This is incorrect and can lead to deployment issues:

      Servlet Spec 2.5
      
      SRV.9.7.2 Web Application Class Loader
      The class loader that a container uses to load a servlet in a WAR must
      allow the developer to load any resources contained in library JARs
      within the WAR following normal J2SE semantics using getResource. As
      described in the J2EE license agreement, servlet containers that are
      not part of a J2EE product should not allow the application to
      override J2SE platform classes, such as those in the java.* and
      javax.* namespaces, that J2SE does not allow to be modified. Also,
      servlet containers that are part of a J2EE product should not allow
      the application to override J2SE or J2EE platform classes, such as
      those in java.* and javax.* namespaces, that either J2SE or J2EE do
      not allow to be modified. The container should not allow applications
      to override or access the container’s implementation
      

      The fix is pretty easy and it would be nice to include it in the upcoming release of Solr 4.0

        Attachments

        1. SOLR-3879.patch.txt
          0.6 kB
          Roman Shaposhnik
        2. SOLR-3879.patch
          2 kB
          Michael McCandless
        3. SOLR-3879.patch
          2 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              rvs Roman Shaposhnik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: