AnsweredAssumed Answered

embedded Activiti ClassCastException stax

Question asked by drams on May 30, 2013
Latest reply on May 31, 2013 by drams
We are updating from Activiti 5.11 to 5.12.1 on a JBoss SOA-P 5.2 platform.
When we are deploying our web application, which embeds our Activiti, this is now throwing problems during parsing of the BPMN workflow.

Caused by: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(

In our unit tests for the workflow it is not causing any problem, so there is some class path clash with JBoss.

How can we run Activiti on JBoss? Excluding the stax dependency from Activiti gives the following exception: Could not retrieve instance of the Activiti process engine: Error parsing XML