0 Replies Latest reply on Jan 21, 2016 3:28 AM by Siva P

    CONFIGURATION FAILED! Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider

    Siva P Master

      Hello,

       

      When i am starting my Jboss Server below error is displayed?

      I have listed out the configurations and other things below.

       

      16:42:00,427 WARN  [org.jboss.seam.security.permission.PersistentPermissionResolver] (ServerService Thread Pool -- 99) no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
      16:42:00,733 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 99) Initializing Mojarra 2.1.28 ( 20140303-1517 https://svn.java.net/svn/mojarra~svn/tags/2.1.28@12942) for context '/SimpleReporting'
      16:42:02,700 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (ServerService Thread Pool -- 99) JSF1051: Service entry 'org.jboss.as.jsf.injection.JSFInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.
      16:42:02,701 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (ServerService Thread Pool -- 99) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
      16:42:02,731 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 99) Critical error during deployment: :
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.28.jar:2.1.28]
          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_32]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]
          at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: javax.faces.FacesException: Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
          at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:805) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.1.28.jar:2.1.28]
          ... 13 more
      
      16:42:02,798 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SimpleReporting]] (ServerService Thread Pool -- 99) JBWEB000287: 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.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:276) [jsf-impl-2.1.28.jar:2.1.28]
          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_32]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]
          at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.28.jar:2.1.28]
          ... 12 more
      Caused by: javax.faces.FacesException: Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider
          at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:805) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.1.28.jar:2.1.28]
          ... 13 more
      
      16:42:02,800 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 99) JBWEB001103: Error detected during context /SimpleReporting start, will stop it
      16:42:02,899 SEVERE [javax.faces] (ServerService Thread Pool -- 99) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
      16:42:02,899 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 99) 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:1010) [jsf-api-2.1.28.jar:2.1]
          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342) [jsf-api-2.1.28.jar:2.1]
          at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141) [jsf-impl-2.1.28.jar:2.1.28]
          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314) [jsf-impl-2.1.28.jar:2.1.28]
          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3427) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3839) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_32]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]
          at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      
      16:42:02,960 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 99)
      MSC000001: Failed to start service jboss.web.deployment.default-host./SimpleReporting: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./SimpleReporting: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_32]
          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_32]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_32]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]
          at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)
          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
          ... 7 more
      
      16:42:03,252 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 97) JBAS011403: Stopping Persistence Unit Service 'SimpleReporting.war#simpleReportingDS'
      16:42:03,393 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment SimpleReporting.war (runtime-name: SimpleReporting.war) in 173ms
      
      
      
      

       

      Configuration:

      Richfaces Version : RichFaces Core Implementation by JBoss by Red Hat, version v4.5.12.Final

      Jboss Version: JBoss EAP 6.2.0.GA (AS 7.3.0.Final-redhat-14)

      Seam: Seam 2.3.0.CR1

      JSF : Initializing Mojarra 2.1.28 ( 20140303-1517 https://svn.java.net/svn/mojarra~svn/tags/2.1.28@12942) for context '/SimpleReporting'

       

      Its my Own Version of Custom JSF.

      If I use  Richfaces jar(v4.5.12.Final) in the EAP 6.2 means ,It enforces the user to use like .. java.lang.RuntimeException: The JSF implementation 2.1.19 does not support the RichFaces ExtendedPartialViewContext. Please upgrade to at least Mojarra 2.1.28 or 2.2.6.

      Here 2.1.19 is in == jboss-eap-6.2\modules\system\layers\base\javax\faces\api\main\jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar

      Here 2.1.28 is in == C:\Siva\openJava-1205\jboss-eap-6.2.0\jboss-eap-6.2\modules\system\layers\base\javax\faces\api\2.1.28\jsf-api-2.1.28.jar

       

      So only i have implemented the Custom Mojarra version(2.1.28) in the application.

      How to resolve the above error?