NotSerializableException on vaadin-cdi class


Were using Vaadin 7.1.5 in combination with vaadin-cdi-1.0.0.alpha and now we’re getting NotSerializableExceptions for the following classes: org.apache.webbeans.component.ManagedBean com.vaadin.cdi.internal.UIBean

This is caused in our load-balanced environment where the HttpSession is replicated to the other server.
Looking at the message the UIBean and the ManagendBean are not serializable.

The question is however, why are these classes put in the session and who is responsible for doing this ?
Does our setup even work with CDI and session replication ?

We’re using the @CDIUI annotation for the Application and the CDIViewProvider. Our views have the @CDIView annotation.

Thank you for your help in advance.

Kind regards,
Richard Aalten