2016-08-24 5 views
0

이전 activiti의 이전 버전이 5.11이고 이제는 5.21.0으로 업데이트하려고합니다. 이전 구성에서는 restlet servlet이 사용됩니다. 이제 webconfigurer.class로 구성하려고합니다. web.xml에 listener를 삽입했습니다. 그러나 그것은 오류를 던지고있다.webconfigurer.class로 activiti 5.21.0을 구성하는 방법

web.xml의 항목

<listener><listener-class>org.activiti.rest.servlet.WebConfigurer</listener-class></listener> 

오류 : 모든 Activiti 의존성이 동일한 버전을 사용해야합니다

SEVERE: Exception sending context initialized event to listener instance of class org.activiti.rest.servlet.WebConfigurer 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoDataConfiguration': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.activiti.bpmn.converter.child.BaseChildElementParser.parseChildElement(Ljavax/xml/stream/XMLStreamReader;Lorg/activiti/bpmn/model/BaseElement;Lorg/activiti/bpmn/model/BpmnModel;)V 
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1558) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) 
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) 
    at org.activiti.rest.servlet.WebConfigurer.contextInitialized(WebConfigurer.java:45) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455) 
    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:634) 
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1230) 
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1876) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:745) 
Caused by: java.lang.AbstractMethodError: org.activiti.bpmn.converter.child.BaseChildElementParser.parseChildElement(Ljavax/xml/stream/XMLStreamReader;Lorg/activiti/bpmn/model/BaseElement;Lorg/activiti/bpmn/model/BpmnModel;)V 
    at org.activiti.bpmn.converter.util.BpmnXMLUtil.parseChildElements(BpmnXMLUtil.java:126) 
    at org.activiti.bpmn.converter.BaseBpmnXMLConverter.parseChildElements(BaseBpmnXMLConverter.java:253) 
    at org.activiti.bpmn.converter.BaseBpmnXMLConverter.parseChildElements(BaseBpmnXMLConverter.java:243) 
    at org.activiti.bpmn.converter.StartEventXMLConverter.convertXMLToElement(StartEventXMLConverter.java:55) 
    at org.activiti.bpmn.converter.BaseBpmnXMLConverter.convertToBpmnModel(BaseBpmnXMLConverter.java:91) 
    at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:426) 
    at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:284) 
    at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:187) 
    at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:136) 
    at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:58) 
    at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:106) 
+0

설정에 대해 조금 더 게시 할 수 있습니까? 의존성으로 activiti-rest를 포함 시켰습니까? 이것은 Activiti 웹 앱 프로젝트에서 우리가하는 일이며, 실제로 web.xml에 리스너를 추가합니다. https://github.com/Activiti/Activiti/blob/master/modules/activiti-webapp-rest2/src/ main/webapp/WEB-INF/web.xml # L21 –

답변

1

있습니까? 이 오류 메시지에서 activiti-bpmn-model 또는 activiti-bpmn-converter에는 다른 버전이있을 것으로 예상됩니다.