Petr Sakaƙ edited a comment on Bug JDF-631

spring-resteasy integration provided by EAP 6.2.0.GA (resteasy-spring.jar version 2.3.7.Final-redhat-2) does not work with spring 4.x.
Root cause is that integration currently uses method, which was deprecated in spring 3.x and removed in 4.x

Spring class

package org.springframework.web.context;
...
public class ContextLoaderListener extends ContextLoader implements ServletContextListener {
...
	/**
	 * Create the ContextLoader to use. Can be overridden in subclasses.
	 * @return the new ContextLoader
	 * @deprecated in favor of simply subclassing ContextLoaderListener itself
	 * (which extends ContextLoader, as of Spring 3.0)
	 */
	@Deprecated
	protected ContextLoader createContextLoader() {
		return null;
	}
...
}

Resteasy class

package org.jboss.resteasy.plugins.spring;
...
public class SpringContextLoaderListener extends ContextLoaderListener
{
   @Override
   public void contextInitialized(ServletContextEvent event)
   {
...
      super.contextInitialized(event);
   }

   protected ContextLoader createContextLoader()
   {
      return new SpringContextLoader();
   }
}

The last method createContextLoader is not called anymore when spring 4.x is used

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira