WELD-000072 Managed bean declaring a passivating scope must be passivation capable

You can make your bean passivation capable by implementing the Serializable interface:

public class DemoBean implements Serializable { ... }

Note that there are more requirements for being passivation capable. Refer to the Weld documentation for more information.


The error might remain even though the CDI bean is serializable:

WELD-000072 Managed bean declaring a passivating scope must be passivation capable

Example class:

@Named
@ConversationScoped
public class TransactionMatchController implements Serializable {
    ...
}

Make sure that all @Interceptors are seializable as well:

@Interceptor
@Transactional
public class TransactionInterceptor implements Serializable {
    ...
}

It must be serializable.

See this answer.

https://community.jboss.org/thread/179828

Best, Anders


Make DemoBeans serialized

@Named("DemoBeans")
@SessionScoped
public class DemoBeans  implements Serializable
{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}