|
Page Edited :
SM :
3. Installation
3. Installation has been edited by Bruce Snyder (Jan 21, 2008). Content:3. InstallationThis document describes how to install and configure ServiceMix 3.x for both Unix and Windows' platforms. Installing the ServiceMix Binary DistributionOnce you've followed the tutorials to create some SUs and SAs, you'll need to deploy them to ServiceMix. This requires that you install the binary distribution of ServiceMix so that you can deploy your SAs to it. Below are the steps to achieve this. Pre-Installation RequirementsHardware:
Operating Systems:
Environment:
Binary Distribution Installation ProcedureThis procedure explains how to download and install the binary distribution.
Starting ServiceMixThis section provides instructions on starting ServiceMix from both Windows and Unix platforms. Below are the steps to follow: > cd $SERVICEMIX_HOME The $SERVICEMIX_HOME above is just simply a placeholder for the ServiceMix binary distribution directory, i.e., the directory you expanded from the downloaded tarball or zip file.
Stopping ServiceMixFor both Windows and Unix installations, terminate ServiceMix by typing "CTRL-C" on the command line where ServiceMix is running. ServiceMix uses the Java shutdown hook Additional ResourcesAfter the installation, ServiceMix is running with a basic configuration. For details on configuring additional options, please see Configuration. Before trying to use ServiceMix, make sure to read the What is JBI document, take a look at the available Components list for a list of JBI compliant components and get an idea for the ServiceMix Architecture along with the supported NMR Flows. A good next step is to deploy and run the Examples that are part of the ServiceMix binary distribution. The examples are located in the examples directory under the directory in which ServiceMix was installed.
To view the statistics and operation of ServiceMix in a JMX Console and see how the Management works please read the page about the JMX Console and the page about Management. Working With the ServiceMix Source CodeIf you're interested to dig in and work with the ServiceMix source code, take a look at the Source and the Building documents. These documents will help you check out the ServiceMix source code using Subversion and build it using Maven. TroubleshootingPath nameIn case you get a Exception in thread "main" java.lang.IllegalArgumentException you may have some illegal characters in the path, e.g. !, % etc. Missing librariesStarting ServiceMix with old examples, CIMERO-generated xml configuration files or custom code may cause errors due to missing libraries. Usually, the missing class is displayed at the very end of the output. Here, some examples are shown and explained. Caused by: java.lang.NoClassDefFoundError: org/quartz/JobExecutionException Obviously (bold typed text), a class inside the quartz package cannot be found. A quick search for "quartz" in the Maven repository reveals [user_home]\.m2\repository\quartz\quartz\1.5.2\quartz-1.5.2.jar (or newer version) which has to be copied to [ServiceMix_home]\lib\quartz-1.5.2.jar - the error shall be resolved now. Of course, adding the directory containing the jar to the classpath is another possibility. Very similar is ... indicating that the whole servicemix-common package cannot be found. In the Maven repository, servicemix-components-3.0-incubating.jar (or newer version) can be found and copied to ServiceMix' lib directory. Note: As this is a ServiceMix' sub-project, the jar is available at [ServiceMix_home]\components as well. Slightly trickier is ... A short www search leads to Unrecognized xbean namespace mapping. With this information, one can infer that [user_home]\.m2\repository\org\apache\servicemix\servicemix-eip\3.0-incubating\servicemix-eip-3.0-incubating.jar (or newer version) has to be copied to [ServiceMix_home]\lib\servicemix-eip-3.0-incubating.jar so ServiceMix can find the classes. Testing the InstallationIf ServiceMix is up and running without problems, the Window's console window or the Unix command shell will display something similar to the following log line: INFO - JBIContainer.init(421) | ServiceMix JBI Container ([http://servicemix.org/]) name: defaultJBI running version: 3.0-incubating
ServiceMix's default port is 1099. From another window run netstat and search for port 1099. From a Windows console, type: netstat -an | find "1099"
OR From a Unix command shell, type: netstat -an | grep 1099 |
Unsubscribe or edit your notifications preferences
