Exception: could not find Factory: javax.faces.context.FacesContextFactory

前端 未结 3 1747
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 12:29

I\'m migrating from JBoss 5.1.0.GA to JBoss 6.0.0-Final and facing following exception during FacesServler initialization

2011-03-09 18:07:24,574 ERROR [org.         


        
3条回答
  •  天涯浪人
    2020-11-30 13:21

    This is a sign of classpath pollution. JBoss already ships with JSF bundled. This exception can occur if you bundle JSF in your WAR as well. It'll only collide.

    There are 2 solutions:

    1. Get rid of jsf-api and jsf-impl JARs in your WAR (i.e. they should not end up in /WEB-INF/lib after build/deploy.

    2. Tell JBoss that your WAR ships with its own version of JSF so that JBoss won't use its own.

      
          org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
          true
      
      

提交回复
热议问题