cancel
Showing results for 
Search instead for 
Did you mean: 

embedded Activiti ClassCastException stax

drams
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

drams
Champ in-the-making
Champ in-the-making
This can be ignored.

Apparently StAX in RESTEasy was conflicting with the newest version of Activiti..