updated for latest 1.1.0-SNAPSHOT builds
Installing additional features
This chapter will demonstrate how to add additional features from a remote maven repository to a default installation of the ServiceMix Kernel.
![]() | Last updated January 13, 2009 using smx4knl 1.1.0-SNAPSHOT |
Adding additional maven repositories
The following steps will add in the missing OPS4J and Apache Snapshot maven repositories. Note - this has been fixed in the 1.1.0 release and can be skipped.
- Edit the following file -
- Update org.ops4j.pax.url.mvn.repositories to include the OPS4J and Apache Snapshot repos -
Adding additional feature repositories
The following steps will add in the URLs for the ServiceMix NMR and Features locations.
- Start the ServiceMix Kernel
- Add the following feature install locations
- Verify the feature URLs were added -
Installing a new feature (web)
The following steps will install the "web" feature (support for deploying WAR files with Servlet and JSPs into a Jetty server) into your kernel instance.
- List the available features -
- Install the web feature (and the sub-features it requires) -
- Verify the features were installed
- Verify the installed bundles were started
- The Jetty server should now be listening on http://localhost:8080/
, but with no published applications available.
Deploying a WAR to the installed web feature
The following steps will describe how to install a simple WAR file (with JSPs or Servlets) to the just installed web feature.
- To deploy a WAR (JSP or Servlet) to Jetty, update its MANIFEST.MF to include the required OSGi headers as described here -
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Web+Extender+-+War+-+OSGi-fy![]()
- Copy the updated WAR (archive or extracted files) to the deploy directory.