Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5356

Web.xml uses 2.5 and 3.0 features but specifies 2.4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: None
    • Labels:
      None
    • Sprint:
      5.1 - Final, 5.2-rc1, 5.1.1

      Description

      We're using the metadata-complete attribute that was added in 2.5, but we're specifying 2.4 preventing it from starting in JBoss AS 7 because web.xml does not validate.

      The metadata-complete attribute should be removed and the namespace declaration updated to 2.5.

      The namespace declaration should be:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
      

      It currently is:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" metadata-complete="true" version="2.4">
      

      We're also using the <tracking-mode> tag to specify cookie tracking. This is a Servlet 3.0 feature. JBoss AS 7 seems to ignore that while JBoss AS 6 fails to start. It should also be removed.

        <session-config>
          <tracking-mode>COOKIE</tracking-mode>
        </session-config>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmattsson Tobias Mattsson
              Reporter:
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Checklists

                  Bug DoR
                  DoD