How to use a different StAX implementation in your application in JBoss EAP 6

Solution Verified - Updated -

Issue

  • We have an application that will not work with the org.codehaus.woodstox, as it creates a class conflict, how can we exclude it or get the application to use a different version of javax.xml.stream.XMLStreamWriter, in particular we need to use com.sun.xml.internal.stream.writers.XMLStreamWriterImpl We tried different ways of excluding org.codehaus.woodstox in the jboss-deployment-structure.xml but were unsuccessful. The only way we could get the application to work is by removing it from the javax.xml.jaxp-provider module.xml, but that affects the whole JBoss installation which we do not want to do.

  • How to use a different StAX implementation in your application in JBoss EAP 6

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.