Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Running the sample application in Apache Karaf

Kenneth Powers edited this page Mar 12, 2014 · 20 revisions
  1. Download Apache Karaf and extract the zip where you want it deployed.
  2. Edit the {karaf.install}/etc/config.properties file to use equinox.
karaf.framework=equinox
  1. Start Apache Karaf. (see karaf docs for how to start on your system or for running as a system service)
  2. Install the http feature:
feature:install http
  1. Create the file {karaf.install}/etc/org.ops4j.pax.web.cfg with the following content:
org.osgi.service.http.port=8080
  1. Install requirements for the JavascriptAggregator to run.
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.core.runtime_3.9.0.v20130326-1255.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.core.jobs_3.5.300.v20130429-1813.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.equinox.registry_3.5.300.v20130327-1442.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.equinox.preferences_3.5.100.v20130422-1538.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.core.contenttype_3.4.200.v20130326-1255.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.equinox.app_1.3.100.v20130327-1442.jar
install http://download.eclipse.org/eclipse/updates/4.3/R-4.3-201306052000/plugins/org.eclipse.equinox.http.registry_1.1.300.v20130402-1529.jar
  1. Copy the 3 jaggr bundles to the {karaf.install}/deploy folder.

You should now be able to start the jaggr bundles and view the sample app on your server (port 8080, or whatever you chose above) at test/res/test.html.