Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

This document describes how to install and configure ServiceMix 3.x for both Unix and Windows' platforms.
Here you will find information about what are pre requisite software, where to download Geronimo from and how to customize the installation to use custom ports other than the defaults.

Excerpt Include
SM:Getting StartedSM:Getting Started
nopaneltrue
Getting Started

Troubleshooting

Path name

In case you get a

...

Panel

Caused by: java.lang.NoClassDefFoundError: org/quartz/JobExecutionException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:95)
    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:452)
    ... 53 more

Wiki MarkupObviously (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

Panel

...
Caused by: java.lang.ClassNotFoundException: org.apache.servicemix.components.file.FileWriter
...

...

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 

Panel

...
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://servicemix.apache.org/eip/1.0
...

...

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 Installation

If 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:

...