Well, finally, I have a solution. First of all, I want to thank StaxMan for the help.
My environment: Weblogic 11g, CXF 2.7.5
The problem is that WLS already contains implementations for the StAX API and xml parsers, so the application does not see the Woodstox parser when using CXF.
Here is the pom.xml:
<dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-api</artifactId> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> </dependency>
and the main part is weblogic-application.xml located in the resources / META -INF /:
<prefer-application-packages> <package-name>com.ctc.wstx.*</package-name> <package-name>org.apache.*</package-name> </prefer-application-packages>
Remember that if this can happen, the errors are "NoClassDefinition". If so, add maven dependencies containing missing classes.
Hope this helps someone.
Dmitry
source share