OpenEJB
  1. OpenEJB
  2. OPENEJB-1053

web.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"taglib"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      All

      Description

      When deploying a web application with an old deployment descriptor (Servlet 2.3), openejb fails while unmashalling.
      The Servlet specification clearly says:

      For backwards compatibility of applications written to the 2.2 version of the Web containers are also required to support the 2.2 version of the descriptor. For backward compatibility of applications written to the 2.3 version of the API,Web containers are also required to support the 2.3 version of the deployment descriptor. The 2.2 and 2.3 versions are defined in the appendices.
      
      1. reproduce-1053.txt
        15 kB
        Jean-Louis MONTEIRO

        Activity

        Hide
        Jean-Louis MONTEIRO added a comment -

        Small sample to reproduce the problem.

        Show
        Jean-Louis MONTEIRO added a comment - Small sample to reproduce the problem.
        Hide
        David Blevins added a comment -

        Committed the patch. Marking completed by Jean-Louis as there really were only three extra lines needed beyond his patch. The hard part was the test case.

        $ svn ci
        Sending openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java
        Sending openejb-jee/src/test/java/org/apache/openejb/jee/JeeTest.java
        Adding openejb-jee/src/test/resources/web_2.3-example.xml
        Transmitting file data ...
        Committed revision 905113.

        Show
        David Blevins added a comment - Committed the patch. Marking completed by Jean-Louis as there really were only three extra lines needed beyond his patch. The hard part was the test case. $ svn ci Sending openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java Sending openejb-jee/src/test/java/org/apache/openejb/jee/JeeTest.java Adding openejb-jee/src/test/resources/web_2.3-example.xml Transmitting file data ... Committed revision 905113.

          People

          • Assignee:
            Jean-Louis MONTEIRO
            Reporter:
            Jean-Louis MONTEIRO
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development