Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-577

RestEasy 2.2.1 and servlet 3.0 bad filter mapping

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 2.2.1
    • jaxrs

    Description

      I was using RestEasy 2.2beta1 and the framework was working perfectly.
      When I upgrade to RestEasy 2.2.1GA I receive the followin error during startup:

      java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>
      at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:2934)
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2893)
      at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1180)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1271)

      I think this is due to servlet 3.0 auto scanning feature.

      I had to change the web application version from 3.0 to 2.5:
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

      Attachments

        Issue Links

          Activity

            People

              patriot1burke@gmail.com Bill Burke (Inactive)
              xavan83 Xavier Vanderstukken (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: