On Fri, Jul 3, 2015 at 9:59 AM Romain Manni-Bucau <rmannibu...@gmail.com>
wrote:

> 2015-07-03 15:55 GMT+02:00 John D. Ament <johndam...@apache.org>:
>
> > Actually, only normal scoped beans require non-final.  @Dependent is not
> a
> > normal scope.
> >
> >
> sure but if it is intercepted or decorated it should be proxiable ie not
> final for CDI
>

I don't see either of those in use in the code sample provided.


>
>
> > On Fri, Jul 3, 2015 at 9:50 AM Romain Manni-Bucau <rmannibu...@gmail.com
> >
> > wrote:
> >
> > > They allows things not spec compliant in 2 cases:
> > > - for perf reason
> > > - cause their impl doesnt care
> > >
> > > this is a known difference with OWB but sadly if they dont test their
> app
> > > on both servers they dont use CDI but Weld as container (ie using the
> > spec
> > > API/binaries but not the associated behavior).
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > <http://www.tomitribe.com>
> > >
> > > 2015-07-03 15:41 GMT+02:00 John D. Ament <johndam...@apache.org>:
> > >
> > > > On Fri, Jul 3, 2015 at 9:02 AM Romain Manni-Bucau <
> > rmannibu...@gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > Le 3 juil. 2015 04:38, "jmutawa" <jalal.almut...@gmail.com> a
> écrit
> > :
> > > > > >
> > > > > > Hello Mr. Romain,
> > > > > >
> > > > > > Thank you for your reply. I have added the suggested property in
> > > > > > WEB-INF/application.properties, this is the error I now get:
> > > > > > /
> > > > > > SEVERE: CDI Beans module deployment failed
> > > > > > org.apache.webbeans.exception.inject.DeploymentException:
> > > > > > org.apache.webbeans.exception.WebBeansConfigurationException:
> > > > Passivation
> > > > > > capable beans must satisfy passivation capable dependencies.
> Bean :
> > > > > > DashboardHandler, Name:null, WebBeans Type:MANAGED, API
> > > > > >
> > > > >
> > > >
> > >
> >
> Types:[java.lang.Object,org.jboss.dashboard.ui.components.DashboardHandler,
> > > > > java.io.Serializable],
> > > > > >
> > > >
> > Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
> > > > > > does not satisfy. Details about the Injection-point: Field
> > Injection
> > > > > Point,
> > > > > > field name :  log, Bean Owner : [DashboardHandler, Name:null,
> > > WebBeans
> > > > > > Type:MANAGED, API
> > > > > >
> > > > >
> > > >
> > >
> >
> Types:[java.lang.Object,org.jboss.dashboard.ui.components.DashboardHandler,
> > > > > java.io.Serializable],
> > > > > >
> > > > >
> > > >
> > >
> >
> Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]/
> > > > > >
> > > > >
> > > > > Means an interceptor or decorator is not serializable on this bean.
> > > > >
> > > > > >
> > > > > > This seems to be the code it was originally complaining about:
> > > > > > /
> > > > > > package org.jboss.dashboard.ui.config.treeNodes;
> > > > > >
> > > > > > import javax.annotation.PostConstruct;
> > > > > > import javax.inject.Inject;
> > > > > >
> > > > > > import org.jboss.dashboard.ui.config.AbstractNode;
> > > > > > import org.jboss.dashboard.ui.config.TreeNode;
> > > > > >
> > > > > > public final class RootNode extends AbstractNode {
> > > > > >
> > > > > >     @Inject
> > > > > >     private WorkspacesNode workspacesNode;
> > > > > >
> > > > > >     @Inject
> > > > > >     private ResourcesNode resourcesNode;
> > > > > >
> > > > > >     @Inject
> > > > > >     private GlobalPermissionsNode globalPermissionsNode;
> > > > > >
> > > > > >     @PostConstruct
> > > > > >     protected void init() {
> > > > > >         super.setSubnodes(new TreeNode[] {workspacesNode,
> > > > resourcesNode,
> > > > > > globalPermissionsNode});
> > > > > >     }
> > > > > >
> > > > > >     public String getId() {
> > > > > >         return "root";
> > > > > >     }
> > > > > > }
> > > > > > /
> > > > > >
> > > > >
> > > > > Yes, remiving final before class would be the fix.
> > > > >
> > > >
> > > > I'm actually very surprised that weld is allowing this.
> > > >
> > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > >
> > > > >
> > > >
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/Running-JBoss-Dashbuilder-on-TomEE-tp4675437p4675441.html
> > > > > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > > > >
> > > >
> > >
> >
>

Reply via email to