5 Replies Latest reply on May 20, 2017 11:21 PM by James Perkins

    Multiple JSF Applications found on same ClassLoader. Unable to safely determine which FactoryManager instance to use. Defaulting to first match.

    Juraj Lonc Newbie

      I am using Wildfly 10.1.0 Final, I have added Richfaces module:

      <module xmlns="urn:jboss:module:1.3" name="org.richfaces">
          <resources>
              <resource-root path="atmosphere-runtime-2.4.3.jar"/>
              <resource-root path="cssparser-0.9.18.jar"/>
              <resource-root path="guava-19.0.jar"/>
              <resource-root path="richfaces-a4j-4.5.17.Final.jar"/>
              <resource-root path="richfaces-core-4.5.17.Final.jar"/>
              <resource-root path="richfaces-rich-4.5.17.Final.jar"/>
              <resource-root path="richfaces-page-fragments-4.5.17.Final.jar"/>
              <resource-root path="sac-1.3.jar"/>
          </resources>
          <dependencies>
              <module name="com.sun.jsf-impl" />
              <module name="javaee.api" />
              <module name="javax.faces.api" />
              <module name="org.slf4j" />
          </dependencies>
      </module>
      

       

      I have deployed 1 web application, which does not contain any jar related to JSF or Richfaces.

      Dependencies in this web application are set to:

       

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <deployment>
              <dependencies>
                  <module name="org.hibernate" slot="main" />
                  <module name="org.javassist" slot="main" />
                  <module name="javax.mail.api" slot="main" />
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

       

      Log contains many warnings:

      2017-05-15 10:41:53,740 WARNING [javax.faces] (default task-107) Multiple JSF Applications found on same ClassLoader.  Unable to safely determine which FactoryManager instance to use. Defaulting to first match.

       

      How to solve this problem?

      I am not aware of multiple JSF applications in Wildfly.