Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5849

Web application with bundled JSF and CDI activated fails to deploy

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: EAP 6.1.0.Alpha (7.2.0.Final)
    • Fix Version/s: None
    • Component/s: Class Loading, JSF
    • Labels:
      None

      Description

      Starting with Stan Silverts sample in the thread https://community.jboss.org/thread/171282?start=0&tstart=0, I've added a beans.xmls and followed the suggestions in AS7-3940 and added the jboss-deployment-structure.xml but deployment still results in

      10:29:28,851 SEVERE [org.apache.myfaces.webapp.AbstractFacesInitializer] (MSC service thread 1-4) An error occured while initializing MyFaces: Class org.jboss.as.weld.webtier.jsf.WeldApplicationFactory is no javax.faces.application.ApplicationFactory: java.lang.IllegalArgumentException: Class org.jboss.as.weld.webtier.jsf.WeldApplicationFactory is no javax.faces.application.ApplicationFactory
      	at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:311) [myfaces-api-2.1.1.jar:2.1.1]
      	at javax.faces.FactoryFinder._getFactory(FactoryFinder.java:277) [myfaces-api-2.1.1.jar:2.1.1]
      	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:200) [myfaces-api-2.1.1.jar:2.1.1]
      	at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:489) [myfaces-impl-2.1.1.jar:2.1.1]
      	at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:401) [myfaces-impl-2.1.1.jar:2.1.1]
      	at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:309) [myfaces-impl-2.1.1.jar:2.1.1]
      	at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) [myfaces-impl-2.1.1.jar:2.1.1]
      	at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:125) [myfaces-impl-2.1.1.jar:2.1.1]
      	at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111) [myfaces-impl-2.1.1.jar:2.1.1]
      	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3331) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3769) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]
      	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:102) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
      

      on a fresh upstream origin

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                nickarls Nicklas Karlsson
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: