|
From: Josiah H. <jos...@gm...> - 2014-01-13 20:20:26
|
Hi folks, I've noticed Resteasy 3.0.6 doesn't work with Spring 4, and was wondering if there was an approximate time-frame for supporting Spring 4. I couldn't find any associated issues in Resteasy's JIRA. Thanks! Josiah |
|
From: Bill B. <bb...@re...> - 2014-01-13 22:20:47
|
Integration APIs have changed for Spring 4? Are you sure it doesn't work? On 1/13/2014 3:20 PM, Josiah Haswell wrote: > Hi folks, > > I've noticed Resteasy 3.0.6 doesn't work with Spring 4, and was > wondering if there was an approximate time-frame for supporting Spring > 4. I couldn't find any associated issues in Resteasy's JIRA. > > Thanks! > > Josiah > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Josiah H. <jos...@gm...> - 2014-01-13 22:34:03
|
Yeah. I have not been able to get Resteasy 3 working with Spring 4. When I bump down to Spring 3.2.6, everything works perfectly. I haven't really done that much investigation, but I don't see any exceptions or log messages. The only symptom is that the Resteasy services don't seem to be getting identified; when you visit the URL of the resource, nothing gets returned. Lemme slap together a sample project that demonstrates the behavior. Josiah On Mon, Jan 13, 2014 at 3:20 PM, Bill Burke <bb...@re...> wrote: > Integration APIs have changed for Spring 4? Are you sure it doesn't work? > > On 1/13/2014 3:20 PM, Josiah Haswell wrote: > > Hi folks, > > > > I've noticed Resteasy 3.0.6 doesn't work with Spring 4, and was > > wondering if there was an approximate time-frame for supporting Spring > > 4. I couldn't find any associated issues in Resteasy's JIRA. > > > > Thanks! > > > > Josiah > > > > > > > ------------------------------------------------------------------------------ > > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > > Learn Why More Businesses Are Choosing CenturyLink Cloud For > > Critical Workloads, Development Environments & Everything In Between. > > Get a Quote or Start a Free Trial Today. > > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > Resteasy-developers mailing list > > Res...@li... > > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > |
|
From: Geyer, R. <Ran...@in...> - 2014-01-14 00:24:40
Attachments:
RestEasyContextLoaderListener.txt
|
import javax.servlet.FilterRegistration;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration.Dynamic;
import org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher;
import org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.filter.DelegatingFilterProxy;
import org.springframework.web.servlet.DispatcherServlet;
/**
* WebApplicationInitializer that configures the ServletContext programmatically for
* RestEasy support.
*
* @see WebApplicationInitializer
*
* @author rgeyer
* @version $Author: rgeyer $ $DateTime: 2014/01/10 17:50:52 $ $Revision: #2 $
*/
public class RestEasyApplicationInitializer implements WebApplicationInitializer {
private static final Logger logger = LoggerFactory.getLogger(RestEasyApplicationInitializer.class);
@Override
public void onStartup(ServletContext container) throws ServletException {
logger.info("onStartup()");
// RestEasy listener
container.setInitParameter("resteasy.document.expand.entity.references", "false");
container.setInitParameter("resteasy.logger.type", "SLF4J");
//container.setInitParameter("javax.ws.rs.Application", null);
container.addListener(new ResteasyBootstrap());
// Spring root application context with RestEasy support
final AnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();
container.addListener(new RestEasyContextLoaderListener(rootContext));
rootContext.register(AppConfig.class);
// Spring Dispatcher servlet
final DispatcherServlet springServlet = new DispatcherServlet(webContext);
final Dynamic publicDispatcher = container.addServlet("springDispatcher", springServlet);
publicDispatcher.setLoadOnStartup(1);
publicDispatcher.addMapping("/");
// RestEasy Dispatcher servlet
final HttpServletDispatcher restServlet = new HttpServletDispatcher();
final Dynamic restDispatcher = container.addServlet("restEasyDispatcher", restServlet);
restDispatcher.addMapping("/sync/*");
}
} |