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 Jun 5, 2015 · 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
    
  3. Start Apache Karaf. (see karaf docs for how to start on your system or for running as a system service)

  4. Install the http feature:

    For Karaf 2.x

    features:install http
    

    For Karaf 3.x

    feature:install http
    
  5. Create the file {karaf.install}/etc/org.ops4j.pax.web.cfg with the following content:

    org.osgi.service.http.port=8080
    
  6. 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
    
  7. Copy all 4 jaggr bundles to the {karaf.install}/deploy folder. (3 if you're using the 1.1.x branch)

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.