Hi Ryan,
What's the servicemix version you are using?
I just test the servicemix 3.2.2 snapshot web distribution, it's ok for me.
I'm using jetty as servlet container, and there is a web-gui for you to
install/start component and deploy SA.
[1] for more details how it works
[1]http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/distributions/apache-servicemix-web/README.txt
Freeman
Ryan Moquin wrote:
I'm trying to understand how to use the servicemix WAR distribution. I've
been using the standalone for a while and it's been working well. I'm
hoping to use the WAR version so that I can make it easier to consolidate
different applications for demo purposes. I'm not exactly sure how to get
started with the WAR file. I mean I know that it should be deployed in
tomcat and all that, but I always run into trouble when trying to deploy
components into it. All I did was take the installer component files from
the standalone distribution and drop them into the "install" directory under
the data directory created by the WAR. When I do this, it attempts to
deploy the components but I get the following error. Is there a set of
steps needed to successfully use the WAR distribution? It seems like it's
missing some dependencies, but I'm not sure where they would do. Is the WAR
distribution suitable for use instead of the standalone? Thanks for any
help!!
java.lang.NoClassDefFoundError: javax/jms/MessageListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.xbean.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:
48)
at
org.apache.xbean.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:272)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.xbean.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:2
24)
at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoade
r.java:200)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org.apache.servicemix.wsn.component.WSNLifeCycle.doInit(WSNLifeCycle.java:63)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:187)
at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java
:201)
at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.j
ava:287)
at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(ComponentMBeanImpl.jav
a:216)
at
org.apache.servicemix.jbi.framework.InstallationService.install(InstallationService
.java:334)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateComponent(AutoDeplo
ymentService.java:289)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploym
entService.java:249)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDepl
oymentService.java:647)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeployment
Service.java:60)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentServi
ce.java:611)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Timer-1" java.lang.NoClassDefFoundError:
javax/jms/MessageListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.xbean.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:
48)
at
org.apache.xbean.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:272)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.xbean.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:2
24)
at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoade
r.java:200)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org.apache.servicemix.wsn.component.WSNLifeCycle.doInit(WSNLifeCycle.java:63)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:187)
at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java
:201)
at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.j
ava:287)
at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(ComponentMBeanImpl.jav
a:216)
at
org.apache.servicemix.jbi.framework.InstallationService.install(InstallationService
.java:334)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateComponent(AutoDeplo
ymentService.java:289)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploym
entService.java:249)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDepl
oymentService.java:647)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeployment
Service.java:60)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentServi
ce.java:611)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)