You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by sa...@laposte.net on 2014/12/20 16:34:45 UTC
[CDI - OpenWebBeans] explicit no arg constructor
Hello All,
im currently trying to run an app based on Vraptor Framework with tomee 2.0.
unfortunately im facing an issue with proxyable beans.
the issue is that openweb beans need an explicit default constructor and Vraptor CDI objects doesn't implement it.
in the other hand the same application is running fine on WildFly with Weld implementation.
my question is, should i suggest something to Vraptor guys if the CDI spec doesnt define this aspect or should i get in touch with OWB guys to check with this issue?
thanks in advance
Salim
Re: [CDI - OpenWebBeans] explicit no arg constructor
Posted by Mark Struberg <st...@yahoo.de>.
I'm not sure what Weld does, but the spec clearly mandates it
"3.15. Unproxyable bean types
The container uses proxies to provide certain functionality. Certain legal bean types cannot be proxied by the container:
• classes which don’t have a non-private constructor with no parameters,
..
Otherwise, the container automatically detects the problem, and treats it as a deployment problem."
Please let us know how this bean looks like.
txs and LieGrue,
strub
> On Saturday, 20 December 2014, 16:35, "salim.massa@laposte.net" <sa...@laposte.net> wrote:
> > Hello All,
>
> im currently trying to run an app based on Vraptor Framework with tomee 2.0.
>
> unfortunately im facing an issue with proxyable beans.
>
> the issue is that openweb beans need an explicit default constructor and Vraptor
> CDI objects doesn't implement it.
>
> in the other hand the same application is running fine on WildFly with Weld
> implementation.
>
> my question is, should i suggest something to Vraptor guys if the CDI spec
> doesnt define this aspect or should i get in touch with OWB guys to check with
> this issue?
>
>
> thanks in advance
>
> Salim
>
Re: [CDI - OpenWebBeans] explicit no arg constructor
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Ok so it is normal
Le 20 déc. 2014 23:20, <sa...@laposte.net> a écrit :
> Hi Romain,
>
> its an ApplicationScoped.
>
>
> Salim
>
> ----- Mail original -----
>
> De: "Romain Manni-Bucau" <rm...@gmail.com>
> À: users@tomee.apache.org
> Envoyé: Samedi 20 Décembre 2014 16:42:44
> Objet: Re: [CDI - OpenWebBeans] explicit no arg constructor
>
> Hi
>
> Is it scoped or intercepted beans? If so spec is explicit and it is needed
> IIRC
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau
>
>
> 2014-12-20 16:34 GMT+01:00 <sa...@laposte.net>:
> > Hello All,
> >
> > im currently trying to run an app based on Vraptor Framework with tomee
> 2.0.
> >
> > unfortunately im facing an issue with proxyable beans.
> >
> > the issue is that openweb beans need an explicit default constructor and
> Vraptor CDI objects doesn't implement it.
> >
> > in the other hand the same application is running fine on WildFly with
> Weld implementation.
> >
> > my question is, should i suggest something to Vraptor guys if the CDI
> spec doesnt define this aspect or should i get in touch with OWB guys to
> check with this issue?
> >
> >
> > thanks in advance
> >
> > Salim
> >
> >
>
>
Re: [CDI - OpenWebBeans] explicit no arg constructor
Posted by sa...@laposte.net.
Hi Romain,
its an ApplicationScoped.
Salim
----- Mail original -----
De: "Romain Manni-Bucau" <rm...@gmail.com>
À: users@tomee.apache.org
Envoyé: Samedi 20 Décembre 2014 16:42:44
Objet: Re: [CDI - OpenWebBeans] explicit no arg constructor
Hi
Is it scoped or intercepted beans? If so spec is explicit and it is needed IIRC
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2014-12-20 16:34 GMT+01:00 <sa...@laposte.net>:
> Hello All,
>
> im currently trying to run an app based on Vraptor Framework with tomee 2.0.
>
> unfortunately im facing an issue with proxyable beans.
>
> the issue is that openweb beans need an explicit default constructor and Vraptor CDI objects doesn't implement it.
>
> in the other hand the same application is running fine on WildFly with Weld implementation.
>
> my question is, should i suggest something to Vraptor guys if the CDI spec doesnt define this aspect or should i get in touch with OWB guys to check with this issue?
>
>
> thanks in advance
>
> Salim
>
>
Re: [CDI - OpenWebBeans] explicit no arg constructor
Posted by Daniel Cunha <da...@gmail.com>.
Romain,
Exactly!
Salim,
if you want inject your dependencies in constructor, yes, you need to
implement default constructor as well. :)
On Sat, Dec 20, 2014 at 3:42 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:
> Hi
>
> Is it scoped or intercepted beans? If so spec is explicit and it is needed
> IIRC
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau
>
>
> 2014-12-20 16:34 GMT+01:00 <sa...@laposte.net>:
> > Hello All,
> >
> > im currently trying to run an app based on Vraptor Framework with tomee
> 2.0.
> >
> > unfortunately im facing an issue with proxyable beans.
> >
> > the issue is that openweb beans need an explicit default constructor and
> Vraptor CDI objects doesn't implement it.
> >
> > in the other hand the same application is running fine on WildFly with
> Weld implementation.
> >
> > my question is, should i suggest something to Vraptor guys if the CDI
> spec doesnt define this aspect or should i get in touch with OWB guys to
> check with this issue?
> >
> >
> > thanks in advance
> >
> > Salim
> >
> >
>
--
Daniel Cunha (soro)
Re: [CDI - OpenWebBeans] explicit no arg constructor
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Is it scoped or intercepted beans? If so spec is explicit and it is needed IIRC
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2014-12-20 16:34 GMT+01:00 <sa...@laposte.net>:
> Hello All,
>
> im currently trying to run an app based on Vraptor Framework with tomee 2.0.
>
> unfortunately im facing an issue with proxyable beans.
>
> the issue is that openweb beans need an explicit default constructor and Vraptor CDI objects doesn't implement it.
>
> in the other hand the same application is running fine on WildFly with Weld implementation.
>
> my question is, should i suggest something to Vraptor guys if the CDI spec doesnt define this aspect or should i get in touch with OWB guys to check with this issue?
>
>
> thanks in advance
>
> Salim
>
>