There can only be one root handler. Basically handlers chain together, so the current handler picks the next handler (or generates a response).
It sounds like what you want to do is map the JAX-RS handlers to the root of the servlet deployment, and then use a path handler with the servlet deployment under /api and the resource handler under /.
Alternatively you just set the Servlet deployment's ResourceManager and then the resources will just be served up by the DefaultServlet.