3 Replies Latest reply on Jul 15, 2012 10:34 PM by Reuben Admin

    Jboss-as-7.1.1Final ---Found Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider

    Reuben Admin Newbie

      2012-07-10 06:44:25,000] Artifact phoenix:ear exploded: Artifact is being deployed, please wait...

      [2012-07-10 06:44:25,000] Artifact phoenix:ejb exploded: Artifact is being deployed, please wait...

      [2012-07-10 06:44:25,000] Artifact phoenix:war exploded: Artifact is being deployed, please wait... 


      18:44:25,109 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "phoenix_ear_exploded.ear"
      18:44:42,000 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "phoenix_ejb_exploded.jar"
      18:44:42,000 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "phoenix_war_exploded.war"


      18:44:43,796 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'


      18:44:43,812 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'


      18:44:45,328 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.


      18:44:45,406 信息    [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) 初始化上下文 '' 的 Mojarra 2.1.10 (-SNAPSHOT 20120625-1354)

      18:44:45,843 严重    [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-1) JSF1051:服务条目 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' 不扩展 DiscoverableInjectionProvider。条目将被忽略。

      18:44:45,843 信息    [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-1) JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
      18:44:45,859 严重    [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider

      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:377) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
      Caused by: javax.faces.FacesException: Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
      at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:809) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:350) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      ... 9 more

      18:44:45,875 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host2].[/]] (MSC service thread 1-1) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
      Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:377) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      ... 8 more
      Caused by: javax.faces.FacesException: Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
      at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:809) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:350) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      ... 9 more

      18:44:45,906 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart
      18:44:45,906 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [] startup failed due to previous errors
      18:44:45,937 严重    [javax.faces] (MSC service thread 1-1) 启动时没有正确初始化应用程序,无法找到工厂:javax.faces.application.ApplicationFactory. Attempting to find backup.
      18:44:45,937 严重    [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
      at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1011) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328) [javax.faces-2.1.10.jar:2.1.10-SNAPSHOT]
      at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
      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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

      18:44:45,984 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.web.deployment.default-host2./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host2./: JBAS018040: Failed to start context
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

      18:44:46,203 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Deploy of deployment "phoenix_ear_exploded.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host2./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host2./: JBAS018040: Failed to start context"}}
      18:44:46,203 INFO  [org.jboss.as.controller] (management-handler-thread - 1) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host2./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host2./: JBAS018040: Failed to start context