On Thu, Aug 9, 2012 at 3:32 PM, Luca Masini <span dir="ltr"><<a href="mailto:luca.masini@gmail.com" target="_blank">luca.masini@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys, I've found two things that are not standard jax-rs 1.1<div><br></div><div>1) web.xml: it registers only the servlet-mapping (2.3.2 of the specs), and this is not allowed</div></blockquote><div><br></div><div>
Personally I think the plugin should be using the annotation @ApplicationPath instead of the web.xml entry. I know we've debated this before, but this approach brings it inline with what we do in JDF and it's really the recommended way of activating JAX-RS IMO.</div>
<div><br></div><div><div>@ApplicationPath("/rest")</div><div>public class JaxRsActivator extends Application {</div><div>}</div></div><div><br></div><div>(The path should be selected based on what the user specifies during setup).</div>
<div><br></div><div>-Dan</div><div><br></div></div>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://google.com/profiles/dan.j.allen" target="_blank">http://google.com/profiles/dan.j.allen</a><br>
<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>