4 Replies Latest reply on Jan 9, 2012 4:36 PM by lightguard

    Seam Faces 3.1.0 CR1 deployment on JBoss 7.0.2 : Unsatisfied dependencies for type FacesContext

    lukascz

      Hello,


      I'm trying to deploy my application to JBoss 7.0.2. It's working fine on JBoss 7.0.0. It has ear structure, I put all seam jars to app.ear/lib directory and all seam-faces jars to app.ear/app.war/WEB-INF/lib


      During deployment, JBoss 7.0.2 throws exception:




      12:03:22,733 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."app.ear".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."app.ear".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [FacesContext] with qualifiers [@Default] at injection point [[field] @Inject private app.managers.PrimaryManager.facesContext]
              at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
              at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [FacesContext] with qualifiers [@Default] at injection point [[field] @Inject private app.managers.PrimaryManager.facesContext]
              at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:270)
              at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)
              at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:129)
              at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:351)
              at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:336)
              at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:404)
              at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82)
              at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
              ... 5 more
      



      It seems that JBoss 7.0.2. doesn't see seam-faces (from Seam 3.1.0 CR1) libraries and therefore fails with injection of FacesContext.



      My ear has following structure:


      |____app.ear
      | |____app.jar
      | | |____....
      | |____app.war
      | |    |____WEB-INF
      | |       |____lib
      | |          |____richfaces-components-ui-4.1.0.Final.jar
      | |          |____richfaces-core-api-4.1.0.Final.jar
      | |          |____richfaces-core-impl-4.1.0.Final.jar
      | |          |____seam-faces-api.jar
      | |          |____seam-faces.jar 
      | |____lib
      | |   |____all other jars....
      | |____META-INF
      | |   |____beans.xml
      | |   |____persistence.xml
      | |   |____...
      



      Any thoughts?


      Thanks,
      Lukas