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 javax.xml.stream.XMLInputFactory
   at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:191)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:179)

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

Outcomes