I had to load the “parent_last” class at the web module level and delete the following jar files from the WAR: -
geronimo-servlet_3.0_spec-1.0.jar geronimo-javamail_1.4_spec-1.7.1.jar stax-api-1.0.1.jar
This is because of the AssertionBuilderFactory, which is an implementation of version 2.0.5 of neethi.jar, but is the interface in 3.0.2, which we use because of CXF 2.7.5.
Since these jar files are automatically added during build due to CXF dependencies, I think we will have to manually remove these banks from WAR before deploying to WAS. In addition, with each deployment, we will have to change the Class Loader setting for our WAR.
To reorder the Class loader, use the following path: Enterprise Applications> MyApplicationWAR> Manage Modules> MyApplicationWAR
EDIT:
You can do the same from your POM file using the <exclusions>
<dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-bundle-jaxrs</artifactId> <version>${cxf.version}</version> <exclusions> <exclusion> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-javamail_1.4_spec</artifactId> </exclusion> <exclusion> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-servlet_3.0_spec</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.codehaus.jettison</groupId> <artifactId>jettison</artifactId> <version>${jettison.version}</version> <exclusions> <exclusion> <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> </exclusions> </dependency>
source share