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">
- is related to
-
RESTEASY-603 Remove Servlet 2.5 dependency in RESTEasy
- Closed