|
From: Christian H. <chr...@ya...> - 2013-11-25 21:05:56
|
Hi! How can I setup RESTEasy (3.0.5) with CDI and Netty in a Java SE environment? Simply putting the resteasy-cdi module on the class path doesn't work (as suggested in http://docs.jboss.org/resteasy/docs/3.0.5.Final/userguide/html_single/index.html#d4e2034). Here is my startup class: @Singleton public class App { public void printHello( @Observes ContainerInitialized event, @Parameters List<String> parameters) throws Exception { NettyJaxrsServer netty = new NettyJaxrsServer(); netty.setDeployment(new ResteasyDeployment()); netty.setPort(8000); netty.setRootResourcePath(""); netty.setSecurityDomain(null); netty.start(); } } I have a root resource in my example project which should be discovered by weld automatically. But if I load the resource I get: javax.ws.rs.NotFoundException: Could not find resource for full path: http://localhost:8000/ I'm using the following libs: What do I have to do to setup RESTEasy with CDI and Netty (or Undertow would be fine too)? |