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

Resteasy-based application not deploying under Weblogic application server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.2.Final, 4.0.0.Beta6
    • 3.0.11.Final
    • jaxrs
    • None
    • Workaround Exists
    • Hide

      The workaround we have used is patching ourself the affected classes contained in async-http-servlet-3.0, as below:

      @WebFilter(asyncSupported = true, urlPatterns = {"/dummy/*"})
      public class Filter30Dispatcher extends FilterDispatcher

      @WebServlet(asyncSupported = true, urlPatterns = {"/dummy/*"})
      public class HttpServlet30Dispatcher extends HttpServletDispatcher

      We used _dummy _pattern because we are already using a rest application class with path annotation, like this:

      @ApplicationPath("/rest")
      public class RestApplication extends Application

      so at runtime everything seems to work as expected.

      Show
      The workaround we have used is patching ourself the affected classes contained in async-http-servlet-3.0 , as below: @WebFilter(asyncSupported = true, urlPatterns = {"/dummy/*"}) public class Filter30Dispatcher extends FilterDispatcher @WebServlet(asyncSupported = true, urlPatterns = {"/dummy/*"}) public class HttpServlet30Dispatcher extends HttpServletDispatcher We used _dummy _pattern because we are already using a rest application class with path annotation, like this: @ApplicationPath("/rest") public class RestApplication extends Application so at runtime everything seems to work as expected.

      Our web application is using resteasy version 3.0.11 but Weblogic is unable to deploy it.
      The error happens during the war verification phase (not at runtime) so the application remains in "prepared" state.
      The are 2 errors:

      [HTTP:101396]Either the urlPatterns or the value attribute in the WebServlet annotation MUST be present: org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher.

      and

      [HTTP:101397]The urlPatterns attribute, servletNames attribute, or value attribute of the WebFilter annotation MUST be specified: org.jboss.resteasy.plugins.server.servlet.Filter30Dispatcher.

      See attached file for the complete stacktrace.
      It seems that the Weblogic WebAnnotationProcessor validation does not allow Webfilter and Webservlet annotations without the urlPattern (or value).

              rsigal@redhat.com Ronald Sigal
              donniedarko4 Andrea Fortunato (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: