3 Replies Latest reply on Feb 5, 2015 4:04 AM by Michal Petrov

    IllegalStateException: Unable to access CDI on richfaces-showcase 4.5.2 wildfly 8.2.Final

    robert walker Newbie

      hi all, i am trying to migrate my app to RF 4.5.2 (on wildfly 8.2.0.Final) and so i thought i would start with trying

      to deploy rf 4.5.2 showcase.  i execute mvn clean pakage in   richfaces-distribution-4.5.2.Final\examples\richfaces-showcase

      and got a richfaces-showcase.war which I dropped into  wildfly-8.2.0.Final\standalone\deployments

       

      I am running jdk1.7.0_10  (64 bit on windows 7 64bit)

       

      I am getting this error

       

       

      16:25:56,069 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./richfaces-showcase: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./richfaces-showcase: Failed to start service
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_10]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_10]
              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_10]
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Unable to access CDI
              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:222)
              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
              ... 3 more
      Caused by: java.lang.IllegalStateException: Unable to access CDI
              at javax.enterprise.inject.spi.CDI.current(CDI.java:65)
              at org.jboss.weld.servlet.WeldInitialListener.contextInitialized(WeldInitialListener.java:90)
              at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.contextInitialized(ForwardingServletListener.java:34)
              at org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:63)
              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:182)
              ... 7 more

      16:26:01,084 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Initializing Mojarra 2.2.8-jbossorg-1 20140822-1131 for context '/vgrx'
      16:26:15,649 INFO  [org.richfaces.log.Cache] (MSC service thread 1-8) Selected fallback cache factory

       

       

       

      could anyone help and tell me if I am doing something obviously wrong, maybe these two (rf 4.5.2/wildfly 8.2)

      are not ready to play together out of the box yet?

       

      thanks