This rule flags an application if it contains either of the following scenarios:
- The application uses JAX-WS
and provides a third-party JAX-RS implementation such
as org.apache.cxf.jaxrs or
org.glassfish.jersey. The
jaxws and
xmlWS features in
Liberty cannot be used with a third-party JAX-RS implementation.
-
The application uses JAX-RS
and provides a third-party JAX-WS implementation such
as org.apache.cxf.jaxws.
The jaxrs feature
in Liberty cannot be used with a third-party JAX-WS implementation.
The scenarios described above can lead to class path conflicts in Liberty.
To resolve this conflict, there are two recommended approaches:
- Use the Liberty-provided
JAX-WS
or JAX-RS
features for both of the technologies.
- Use third-party implementations for JAX-WS
and JAX-RS, and do not specify the related
Liberty features in the server.xml. This configuration prevents class
loading conflicts.
For additional information related to this rule, see: