Schlagwort-Archive: pax-web

Pax Web 1.1.0 Released

Ok, I just released another version of Pax Web.
This time it's a 1.1.0 with lots of improvements and also bug fixes.
A big thank you goes to all the people that did help with improvements.
and reported bugs 🙂

The major improvements with this release are:

– Form based login is suported
– Better support for JSF
– switch to SLF4J logging
– event notification for Servlets

Check out the change log at ops4j
to get more information about this release.

So what is coming next?

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.