It's actually related to JSF upgrade. In the past @ViewScoped and @FlowScoped were not marked as passivating scopes but effectively they were as JSF was putting these objects into session (causing Serialization errors at runtime). In Mojarra 2.2.7 they fixed this [1] by defining these scopes as passivating.

Since these scopes are now passivating Weld checks whether they can really be passivated. Since Booking does not implement Serializable, Weld fails the deployment.


On 11/26/2014 10:20 PM, Stuart Douglas wrote:
Its probably related to the CDI upgrade. At a guess I would say thinks the bean is not passivation capable because of the EntityManager injection. 

I think this is a Weld bug, but Jozef (in CC) would know more.


On Thu Nov 27 2014 at 7:25:31 AM Arun Gupta <> wrote:
Java EE 7 HOL is failing to deploy on WildFly 8.2:

12:08:38,801 ERROR [] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."movieplex7-1.0-SNAPSHOT.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."movieplex7-1.0-SNAPSHOT.war".WeldStartService: Failed to start service

at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker( [rt.jar:1.8.0_20]

at java.util.concurrent.ThreadPoolExecutor$ [rt.jar:1.8.0_20]

at [rt.jar:1.8.0_20]

Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000072: Bean declaring a passivating scope must be passivation capable.  Bean:  Managed Bean [class] with qualifiers [@Default @Any @Named]

at org.jboss.weld.bean.ManagedBean.checkType(

at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(

at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(

at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(

at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(

at org.jboss.weld.executor.IterativeWorkerTaskFactory$

at org.jboss.weld.executor.IterativeWorkerTaskFactory$

at [rt.jar:1.8.0_20]

... 3 more


Its complaining for the bean defined at:

This has worked, and is still working fine, on WildFly 8.1.

Thoughts ? 

wildfly-dev mailing list