See forum: https://groups.google.com/d/msg/camunda-bpm-users/lGNUiuZEPJw/XQv7sXeTikEJ
Steps to reproduce:
- download (or use) the tomcat distribution
- deploy attached SpringProcessApplication
- deploy the attached SpringProcessApplication once again (first delete the `war` inside the folder `$TOMCAT_DISTRIBUTION/server/apache-tomcat-7.0.33/webapps` and deploy the attached SpringProcessApplication again
Then the following `LinkageError` occurs on the console:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.camunda.bpm.engine.impl.cfg.SpringBeanFactoryProxyMap.<init>(Lorg/springframework/beans/factory/BeanFactory;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/camunda/bpm/engine/spring/ProcessEngineFactoryBean, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, org/camunda/bpm/engine/impl/cfg/SpringBeanFactoryProxyMap, have different Class objects for the type org/springframework/beans/factory/BeanFactory used in the signature
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1442)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:353)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.camunda.bpm.engine.impl.cfg.SpringBeanFactoryProxyMap.<init>(Lorg/springframework/beans/factory/BeanFactory;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/camunda/bpm/engine/spring/ProcessEngineFactoryBean, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, org/camunda/bpm/engine/impl/cfg/SpringBeanFactoryProxyMap, have different Class objects for the type org/springframework/beans/factory/BeanFactory used in the signature
at org.camunda.bpm.engine.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:53)
at org.camunda.bpm.engine.spring.container.ManagedProcessEngineFactoryBean.getObject(ManagedProcessEngineFactoryBean.java:32)
at org.camunda.bpm.engine.spring.container.ManagedProcessEngineFactoryBean.getObject(ManagedProcessEngineFactoryBean.java:29)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
... 33 more