Installing extended Http Service in Apache Karaf

Usually, just using the basic Http Service is not enough anymore these days, especially when it comes to serving JSP or complete web applications. So, a better usable container is needed.

How to do it…

  1. To install the HTTP Whiteboard feature, start your Apache Karaf server and install the HTTP Whiteboard feature via the console using the following command:
    karaf@root()> feature:install http-whiteboard
    
  2. Transform your Apache Karaf server into a full-featured web container using the following command:
    karaf@root()> feature:install war
    

How it works…

The Whiteboard feature installs another two Pax Web bundles. These bundles give you JSP and Whiteboard support. These two bundles are shown in the following ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.