THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
This chapter will demonstrate how to add additional features from a remote maven repository to a default installation of the ServiceMix Kernel.
Info |
---|
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 -
No Format etc/org.ops4j.pax.url.mvn.cfg
Update org.ops4j.pax.url.mvn.repositories to include the OPS4J and Apache Snapshot repos -No Format org.ops4j.pax.url.mvn.repositories=file:${user.home}/.m2/repository@snapshots,http://repo1.maven.org/maven2,http://repository.ops4j.org/maven2,http://people.apache.org/repo/m2-snapshot-repository<at:var at:name="snapshots" />noreleases
...
- Start the ServiceMix Kernel
No Format cd bin ./servicemix or servicemix.bat
- Add the following feature install locations
No Format servicemix> features /addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0-m3m4/xml/features servicemix> features /addUrl mvn:org.apache.servicemix.features/apache-servicemix/4.0-m2-SNAPSHOT/xml/features
- Verify the feature URLs were added -
No Format servicemix> features /listUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0-m3m4-SNAPSHOT/xml/features mvn:org.apache.servicemix.featureskernel/apache-servicemix-kernel/41.1.0-m2-SNAPSHOT/xml/features mvn:org.apache.servicemix.kernelfeatures/apache-servicemix-kernel/14.0.0-m2-SNAPSHOT/xml/features
Installing a new feature (web)
...
- List the available features -
No Format servicemix> features /list State Name . . . [uninstalled] web . . .
- Install the web feature (and the sub-features it requires) -
No Format servicemix> features /install web
- Verify the features were installed
No Format servicemix> features /list State Name . . . [installed ] web-core [installed ] web . . .
- Verify the installed bundles were started
No Format servicemix> osgi /list START LEVEL 100 ID State Level Name . . . [ 29] [Active ] [ 50] Apache ServiceMix Bundles: jetty-6.1.12rc114 (6.1.014.12rc1_1SNAPSHOT) [ 30] [Active ] [ 50] OPS4J Pax Web - Web Container (0.4.1) [ 31] [Active ] [ 50] OPS4J Pax Web - Jsp Support (0.4.1) [ 32] [Active ] [ 50] OPS4J Pax Web Extender - WAR (0.3.0) [ 33] [Active ] [ 50] OPS4J Pax Web Extender - Whiteboard (0.3.0) [ 34] [Active ] [ 50] OPS4J Pax Url - war:, war-i: (0.3.2) [ 35] [Active ] [ 50] Apache ServiceMix WAR Deployer (4.0.0.m2-SNAPSHOT) . . .
- The Jetty server should now be listening on http://localhost:8080/
, but with no published applications available.
No Format HTTP ERROR: 404 NOT_FOUND RequestURI=/ Powered by jetty://
...