Doesn't Spring have a scan facility? Use that. On 2/6/2014 2:41 PM, Anthony Whitford wrote: > I have a project that is using RestEasy -- there were 23 resources. > The project was using "resteasy.scan.resources=true" in the web.xml. > > Now, I added another resource. This time, we need Spring. > So, I add the resteasy-spring dependency and update the web.xml, > according to the docs: > > http://docs.jboss.org/resteasy/docs/3.0.6.Final/userguide/html/RESTEasy_Spring_Integration.html > > Now, the boot fails because the "scan" can't coexist with Spring. No > problem, I can remove the scan.... But then my original 23 resources > are not available. > > According to the documentation... > >> "RESTEasy will automatically scan for @Provider and JAX-RS resource >> annotations on your bean class and register them as JAS-RS resources." > > It would seem that I need to make the 23 resources Spring beans (Add a > @Named annotation, for example), or else manually list them in my > web.xml ("resteasy.resources"), or create an Application instance to > register them... > > Ugh... Why can't the RestEasy-Spring bootstrap automatically register > the resources annotated with @Path? > > Or... Why can't the SCAN coexist with Spring again? > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Resteasy-users mailing list > Resteasy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/resteasy-users >
-- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users