2 Replies Latest reply on Jul 18, 2011 5:49 AM by Esteve Aviles

    AS 7 + MyFaces

    Esteve Aviles Newbie

      Hi,

       

      I have tested myfaces JSF impl with jboss-as-kitchensink JBoss AS 7 example and failed to startup.

       

      I only added this dependencies to the pom.xml:

      <dependency>

       

      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-api</artifactId>
      <version>2.1.1</version>
      <scope>compile</scope>
      </dependency>
      <dependency>
      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-impl-ee6</artifactId>
      <version>2.1.1</version>
      <scope>compile</scope>
      </dependency>

       

       

      <dependency>
      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-impl</artifactId>
      <version>2.1.1</version>
      <scope>compile</scope>
      </dependency>

       

       

      The dependency is added to de MANIFEST.MF too:

      Dependencies: org.apache.log4j, javax.faces.api

       

       

      14:04:40,625 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart

      14:04:40,625 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Falló en arranque del Contexto [/jboss-as-kitchensink] debido a errores previos

      14:04:40,626 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-as-kitchensink]] (MSC service thread 1-1) Excepción enviando evento de contexto destruído a instancia de escuchador de clase org.apache.myfaces.webapp.StartupServletContextListener: java.lang.IllegalStateException: La aplicación no se ha inicializado correctamente durante el inicio, no se encuentra la fábrica: javax.faces.application.ApplicationFactory

          at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:137) [myfaces-impl-2.1.1.jar:]

          at org.apache.myfaces.context.servlet.FacesContextImplBase.getELContext(FacesContextImplBase.java:186) [myfaces-impl-2.1.1.jar:]

          at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:1456) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.myfaces.webapp.AbstractFacesInitializer._createFacesContext(AbstractFacesInitializer.java:404) [myfaces-impl-2.1.1.jar:]

          at org.apache.myfaces.webapp.AbstractFacesInitializer.initShutdownFacesContext(AbstractFacesInitializer.java:386) [myfaces-impl-2.1.1.jar:]

          at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:147) [myfaces-impl-2.1.1.jar:]

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3465) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3970) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3888) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

          at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_16]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_16]

          at java.lang.Thread.run(Thread.java:619) [:1.6.0_16]