Install Pax Wicket

Install Pax Wicket

Running PAX-WICKET

PAX-WICKET can run on any OSGi framework compliant with the R4 Core specifications. In addition to the org.ops4j.pax.wicket.service bundle the following services need to be available:

  • A HTTP Service that is R3 compliant.
  • CGLib (mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.2.2_1)
  • Pax Logging Service (or any other SLF4J frontend) (mvn:org.ops4j.pax/pax-logging-api/1.6.4,mvn:org.ops4j.pax/pax-logging-service/1.6.4)
  • OPS4J Base
  • Wicket (util, request, core; optionally also auth-roles, extensions, date, ...)
  • Javax-Inject

In addition the following dependencies are optional, depending on what you exactly require from pax-wicket:

  • Aries Blueprint
  • SpringDM

For the exact version of the dependencies you need and the download links to them please check the download page of the version you're going to use.

Running on Apache Karaf

If you develop based on the Apache Karaf server it is even much simpler:

1. Download the latest version of Apache Karaf (if you're not already running one).
2. Start Apache Karaf by executing bin/karaf.bat or bin/karaf (depending on your platform)
3. Install Wicket. The following commands will add a feature file containing most of the wicket stack in the latest version it had been tested with the pax-wicket version you choose. You can also provide your own feature file here containing a feature "wicket".

features:addurl mvn:org.ops4j.pax.wicket/paxwicket/PAX_WICKET_VERSION/xml/features
 
if you're using Karaf 3.x please make sure to use the new syntax: 
 
feature:repo-add mvn:org.ops4j.pax.wicket/paxwicket/PAX_WICKET_VERSION/xml/features


4. Install the pax-wicket features file:

features:addurl mvn:org.ops4j.pax.wicket/features/PAX_WICKET_VERSION/xml/features

if you're using Karaf 3.x please make sure to use the new syntax:

feature:repo-add mvn:org.ops4j.pax.wicket/features/PAX_WICKET_VERSION/xml/features

5. Install the PAX-WICKET feature:

feature:install pax-wicket

 
feature:install pax-wicket-blueprint
 
feature:install pax-wicket-springdm

What's next

Now that PAX-WICKET is running on your OSGi environment we get a Wicket Application up and running in the next section.