Book Image

Apache Karaf Cookbook

By : Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler
Book Image

Apache Karaf Cookbook

By: Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
About the Authors
About the Reviewers


This chapter explains how to enhance your Apache Karaf with Pax Web to serve as a web container. The OPS4j Pax Web project is an OSGi R4 Http Service and Web Application (refer to Chapter 128, OSGi Enterprise Release 4) implementation. It extends the Http Service with better support for servlet, filters, listeners, error pages, JavaServer Pages (JSPs), and more in order to support the latest Java Servlet spec.

The standard features of Karaf contain a set of options to install Pax Web in different flavors. There are options for:

  • A basic Http Service

  • An enhanced Http Service with support for the Whiteboard pattern and JSPs

  • A full-blown web container configuration with support for Web Application Archive (WAR) and Web Application Bundle (WAB) files


Readers interested in obtaining a deeper understanding of Apache Karaf in combination with Pax Web should consult the OPS4j community. You'll find a lot more samples concerning the usage of Pax Web in general and Apache Karaf specialties...