Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3985

web.xml uses Servlet 2.3 specification but references <dipatcher> elements which are not defined until Servlet 2.4 specification

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0 M2, 1.9.3
    • 1.9
    • None
    • None
    • Unknown

    Description

      When deployed to an application server that validates "web.xm" against its specification, the deployment fails. As an example, the WAR cannot be deployed as is to Glassfish 2.1. If you remove the DOCTYPE declaration and change the <web-app> node to look like:

      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="..."
      version="2.4">

      then this will deploy okay.

      Attachments

        1. web.xml
          15 kB
          Brett Bergquist

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              bbergquist Brett Bergquist
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: