This is a minimal “Hello world” application that will plug into the Pax Web Whiteboard Extender with the local path “/hello” where it returns an HTML page.
This is how to build and install the servlet:
- First download and install apache karaf
- In the apache karaf command line, install the feature that pulls in the servlet with dependencies
feature:repo-add mvn:no.priv.bang.demos/hello-karaf-demo/LATEST/xml/features feature:install hello-karaf
- After this, the servlet will be listening for GET requests, at the local path “/hello” on the karaf web server, e.g. http://localhost:8181/hello for a karaf server started locally, with default settings
This is how to uninstall the servlet from karaf:
- At the karaf console prompt, give the following command:
feature:uninstall hello-karaf-demo
This will disconnect the servlet from the Pax Web Whiteboard Extender and uninstall the servlet, and all dependencies (e.g. Pax Web) that has been pulled in by this feature.
However, if a different feature has pulled in the same dependencies, the dependencies won’t be uninstalled until everything that has required them is uninstalled.
This software project is licensed under Apache License v. 2.
See the LICENSE file for details.