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

前端 未结 3 1742
被撕碎了的回忆
被撕碎了的回忆 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:15

    I was having the same problem with Jboss EAP 6.1 and 6.3.

    I´m using Maven, then, my problem was about the generation of the EAR file, when I´m using Maven I discovered that my EAR file was been deployed whith dependencies "exploded", that is to say, my EAR file was been deployed with a folder containing the files for my project, and not a WAR and a JAR files.

    When investigating the differences between the exploded EAR directory and the EAR archive I discovered that what you see is not what you get with Maven. I think the issue is that the various Maven plugins for WAR and EAR building are not applied when creating the exploded directories.

    To fix it, I just removed the 'unpack' directives from the POM for the EAR.

      
              
                      br.web  
                      Web  
                      /project  
                      false
              
              
                      br.ejb  
                      Ejb  
                      false  
            
        
    

    In addition, I don't recommend that exploded directories should be used in a EAR file.

提交回复
热议问题