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

Dan Dumont edited this page Jul 16, 2013 · 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:
features: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/3.8/R-3.8-201206081200/plugins/org.eclipse.core.runtime_3.8.0.v20120521-2346.jar
install http://download.eclipse.org/eclipse/updates/3.8/R-3.8-201206081200/plugins/org.eclipse.equinox.common_3.6.100.v20120522-1841.jar
install http://download.eclipse.org/eclipse/updates/3.8/R-3.8-201206081200/plugins/org.eclipse.core.jobs_3.5.200.v20120521-2346.jar
install http://download.eclipse.org/eclipse/updates/3.8/R-3.8-201206081200/plugins/org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar
install http://download.eclipse.org/eclipse/updates/3.8/R-3.8-201206081200/plugins/org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar
install http://download.eclipse.org/eclipse/updates/3.8/R-3.8-201206081200/plugins/org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar
install http://download.eclipse.org/eclipse/updates/3.8/R-3.8-201206081200/plugins/org.eclipse.equinox.app_1.3.100.v20120522-1841.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
  • A note about the link for org.eclipse.equinox.http.registry:

    The above link may fail eventually when the eclipse build moves to a new milestone or release. The fix for the http filter issue was committed on 4/02/2013 and has not (as of this writing) made it into an official release. If this page hasn't been updated with a new link and the above link is broken, a new link can be generated by modifying the example process found here.

  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.