<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It looks like this issue would be cause by your use of the PathHandler, rather than changing to a new ServletContainer (there should be no real difference between using your own and using the default).<br>

<br>
In your Servlet deployment are your JAX-RS handlers mapped under /api?<br>
<br>
If so you are then adding another /api to the path, so the resulting path end up being <a href="http://localhost:8080/api/api/example" target="_blank">http://localhost:8080/api/api/<u></u>example</a>. If you omit the path handler (or register this deployment under &#39;/&#39;, if you still want to be able to have other deployments registered under different contexts) then it should work.<br>

<br></blockquote></div>Yes, I registered the deployment under &quot;/api&quot; and assigned the jax-rs application path to have a mapping of &quot;/api&quot; -- I for some reason thought the assignments would overlap, rather than chain. As a follow-up, I do want to set another handler, specifically: <br>
<br><div class="" id="LC21"><span class=""></span><span class="">setHandler</span><span class="">(</span><span class="">resource</span><span class="">(</span><span class="">new</span> <span class="">FileResourceManager</span><span class="">(</span><span class="">new</span> <span class="">File</span><span class="">(</span>&quot;resources/&quot;<span class="">),</span> <span class="">100</span><span class="">))</span><span class="">.</span><span class="">setDirectoryListingEnabled</span><span class="">(</span><span class="">true</span><span class="">))<br>
<br></span></div><div class="" id="LC21"><span class="">Does it matter in which order handlers are set? Is it fine to use a relative path to the &quot;resources&quot; folder which is found under &quot;src/main/&quot;? Or is there another recommended way? Thanks.<br>
<br></span></div><div class="" id="LC21"><span class="">-Ari<br></span></div></div></div>