Adding additional ServletContext in Pax Web

If you want to add certain special handlers for Jetty you just go ahead and
alter the jetty.xml file. Usually you just add the following peace of code

<Set name="handler">
 <New class="org.eclipse.jetty.server.handler.HandlerList">
  <Set name="handlers">
   <Array type="org.eclipse.jetty.server.Handler">
     <New class="org.eclipse.jetty.servlet.ServletContextHandler">
      <Set name="contextPath">/app</Set>
      <Set name="resourceBase">/path/to/your/share</Set>
      <Call name="addServlet">

This won’t work together with Pax Web since Pax Web does have a specialized ServletContext Handler.

So Instead of defining a new one you just need to use the one that is already there. Please keep in mind
the master configuration of the Jetty Server is contained within the configuration of Pax Web.