Problems with Camunda Spin on UNIX camunda-spin-dataformat-all-1.0.0.jar

443 views
Skip to first unread message

Melissa Palmer

unread,
Jan 29, 2015, 8:37:28 AM1/29/15
to camunda-...@googlegroups.com
Hi All, 

I'm experiencing some oddities with the 'camunda-spin-dataformat-all-1.0.0.jar' when deployed on a Unix environment. 

We have the following setup:
- apache-tomcat-7.0.57 
- java version "1.7.0_25"
- bpm-platform.xml configured to use SpinPlugin 
      <!-- plugin enabling integration of camunda Spin -->
      <plugin>
        <class>org.camunda.spin.plugin.impl.SpinProcessEnginePlugin</class>
      </plugin>
- tomcat lib folder contains spin jars (and all the other camunda related jars that are needed)
camunda-engine-plugin-spin-7.2.0.jar
camunda-spin-core-1.0.0.jar
camunda-spin-dataformat-all-1.0.0.jar
camunda-spin-dataformat-json-jackson-1.0.0.jar

When starting up the server we are seeing the following error (NOTE: exact same setup on a windows box is not causing any issues.): 
Jan 29, 2015 3:19:35 PM org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl invokePreInit
INFO: PLUGIN SpinProcessEnginePlugin activated on process engine default
2015-01-29 15:19:35 INFO  spin:128 - SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
Jan 29, 2015 3:19:35 PM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.NoClassDefFoundError: com/jayway/jsonpath/spi/JsonProvider
        at org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider.createInstance(JacksonJsonDataFormatProvider.java:37)
        at org.camunda.spin.DataFormats.registerProvider(DataFormats.java:152)
        at org.camunda.spin.DataFormats.registerCustomDataFormats(DataFormats.java:140)
        at org.camunda.spin.DataFormats.registerDataFormats(DataFormats.java:124)
        at org.camunda.spin.DataFormats.loadDataFormats(DataFormats.java:181)
        at org.camunda.spin.plugin.impl.SpinProcessEnginePlugin.preInit(SpinProcessEnginePlugin.java:38)
        at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.invokePreInit(ProcessEngineConfigurationImpl.java:513)
        at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:463)
        at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:454)
        at org.camunda.bpm.container.impl.jmx.services.JmxManagedProcessEngineController.start(JmxManagedProcessEngineController.java:34)
        at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:67)
        at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:53)
        at org.camunda.bpm.container.impl.deployment.StartProcessEngineStep.performOperationStep(StartProcessEngineStep.java:114)
        at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:117)
        at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:148)
        at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:209)
        at org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap.deployBpmPlatform(TomcatBpmPlatformBootstrap.java:69)
        at org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap.lifecycleEvent(TomcatBpmPlatformBootstrap.java:55)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 7 more
Caused by: java.lang.ClassNotFoundException: com.jayway.jsonpath.spi.JsonProvider
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 31 more

Jan 29, 2015 3:19:35 PM org.camunda.bpm.engine.impl.jobexecutor.JobExecutor shutdown
INFO: Shutting down the JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor].



Hoping that someone will be able to help me out here with this one? Seems very odd! 

Thanks
Melissa

Sebastian Menski

unread,
Jan 29, 2015, 8:44:46 AM1/29/15
to camunda-...@googlegroups.com
Hi Melissa,

you should deploy either camunda-spin-dataformat-all-1.0.0.jar or camunda-spin-dataformat-json-jackson-1.0.0.jar. The first contains shaded versions of
the dependencies. For the second one you have to add the required dependencies to your classpath.

Cheers,
Sebastian

Melissa Palmer

unread,
Feb 2, 2015, 5:49:03 AM2/2/15
to camunda-...@googlegroups.com
Thanks Sebastian, that has helped and sorted out my issue. 

I am still failing to understand why this was behaving differently on Windows vs. Unix? Any ideas there? 

Thanks
Melissa
Reply all
Reply to author
Forward
0 new messages