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

spring 4.0 incompatible with resteasy 3

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.0.6.Final
    • jaxrs
    • None

      When trying to use resteasy with the latest stable version of spring (4.0.0) we constantly get exceptions that the resource could not be found. Reverting to spring 3.2.7 resolves the issue.

      My web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5" 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">
      <display-name>Xdx-backend</display-name>

      <context-param>
      <param-name>contextClass</param-name>
      <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
      </context-param>
      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>be.optis.portal.context.RootContext</param-value>
      </context-param>

      <!-- RESTEasy configuration -->
      <listener>
      <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
      </listener>

      <!-- RESTEasy <-> Spring connector (RESTEasy can access Spring beans) -->
      <listener>
      <listener-class>org.jboss.resteasy.plugins.spring.SpringContextLoaderListener</listener-class>
      </listener>

      <servlet>
      <servlet-name>restservlet</servlet-name>
      <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
      </servlet>
      <servlet-mapping>
      <servlet-name>restservlet</servlet-name>
      <url-pattern>/rest/*</url-pattern>
      </servlet-mapping>
      </web-app>

      When spring starts, I can see that the rest class boots correctly.

            Unassigned Unassigned
            kurtdb82 Kurt Du Bois (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: