JSF applications deployed in WebSphere traditional can access all
org.apache.myfaces.*
and
javax.faces.*
packages
provided by the MyFaces JSF implementation. On Liberty, only the JSF API classes and a select few implementation classes, seen
here, are made available to applications. The following packages are unavailable and will be flagged
by this rule:
-
org.apache.myfaces.application*
-
org.apache.myfaces.cdi.*
-
org.apache.myfaces.component*
-
org.apache.myfaces.config*
-
org.apache.myfaces.context*
-
org.apache.myfaces.convert
-
org.apache.myfaces.debug
-
org.apache.myfaces.ee6
-
org.apache.myfaces.el*
-
org.apache.myfaces.event
-
org.apache.myfaces.flow*
-
org.apache.myfaces.lifecycle
-
org.apache.myfaces.logging
-
org.apache.myfaces.renderkit
-
org.apache.myfaces.resource
-
org.apache.myfaces.shared
-
org.apache.myfaces.shared.application
-
org.apache.myfaces.shared.component
-
org.apache.myfaces.shared.context*
-
org.apache.myfaces.shared.el
-
org.apache.myfaces.shared.resource
-
org.apache.myfaces.shared.taglib*
-
org.apache.myfaces.shared.test
-
org.apache.myfaces.shared.trace
-
org.apache.myfaces.shared.util*
-
org.apache.myfaces.shared.view
-
org.apache.myfaces.shared.webapp.webxml
-
org.apache.myfaces.shared_impl.util.serial
-
org.apache.myfaces.shared_impl.webapp.webxml
-
org.apache.myfaces.spi*
-
org.apache.myfaces.taglib.*
-
org.apache.myfaces.util
-
org.apache.myfaces.view*
-
org.apache.myfaces.webapp
This rule only flags one instance of the packages mentioned earlier. Applications that use any of those classes should be refactored to only use JSF API classes.
Alternatively, the JSF implementation classes can be bundled and used with the jsfContainer-2.x feature in Liberty. For information and
examples on using jsfContainer-2.x, see
Configuring third-party JavaServer Faces 2.2 implementations.