You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by José Luis Cetina <ma...@gmail.com> on 2014/09/04 00:23:10 UTC

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want to
use myfaces 2.2.4 because i want to use the @javax.faces.view.ViewScoped (i
use the omnifaces viewscoped) and the f:viewAction.

But again im getting javax.enterprise.inject.AmbiguousResolutionException:
Ambiguous resolution exception that i reported a few months ago, apparently
myfaces 2.2.4 is not working with ears in tomee 1.7.0.

I already reported to tomee mailing list but @Romain sayed

"think so but more a MF issue this time I think"

@Leonardo




2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <sm...@gmail.com>:

> if you are not able to use MyFaces 2.2 @ViewScoped, you may need to keep
> OmniFaces CDI @ViewScoped until someone helps you with your issue.
>
> Some months ago, I tested MyFaces 2.2 with OmniFaces CDI @ViewScoped; all
> of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
> experienced no issues. My app is not packaged as an EAR.
>
> today, i am using MyFaces 2.2 @ViewScoped beans even though I still have
> OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
>
> For the first day, running MyFaces 2.2, I am quite pleased. No issues to
> report, no exceptions in tomee/tomcat log files.
>
>
>
> On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <maxtorzito@gmail.com
> >wrote:
>
> > I removed CODI and my app is package as ear. maybe i need to try tomee
> > 1.6.1-snapshot
> >
> >
> > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
> >
> > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
> maxtorzito@gmail.com
> > > >wrote:
> > >
> > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
> > > myfaces
> > > > api and impl 2.2.0
> > > >
> > >
> > > that's exactly what I did and I don't get the error.
> > >
> > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*José Luis Cetina*
-------------------------------------------------------------------

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Romain Manni-Bucau <rm...@gmail.com>.
In an ear you have lib part and war libs. Mf only needs war part. If you
put mf in lib part, mf needs to ensure it doesn't add again beans. For it
you can generate a name for your beans in the extension. This name would be
contextual and finally lib part will never be used normally but it will not
create any conflict.
Le 4 sept. 2014 22:18, "Leonardo Uribe" <lu...@gmail.com> a écrit :

> 2014-09-04 16:04 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > but you can share in both something (common thing is the classloader)
> > to match the bean (or name) you need.
> >
> >
> I don't understand. MyFaces just provide the extension points. When and how
> the extensions are called are up to CDI and maybe Tomee. I suppose the
> AmbiguousResolutionException is caused because MyFaces is loaded twice by
> Tomee (when it is using ear). Split that code in a separate jar will not
> help.
>
>
>
> >
> > Romain Manni-Bucau
> > Twitter: @rmannibucau
> > Blog: http://rmannibucau.wordpress.com/
> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > Github: https://github.com/rmannibucau
> >
> >
> > 2014-09-04 22:38 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> > > As you already know, MyFaces provide some extensions and those
> extensions
> > > register some CDI beans. But the way how the dependencies are loaded
> are
> > > controlled by Tomee and by the CDI implementation, in this case OWB. I
> > have
> > > tried in the past to avoid the CDI beans in the integration point, but
> it
> > > is not possible, you need one in order to hold the beans in the scope,
> > and
> > > you cannot access JSF from CDI (it works the opposite, access CDI from
> > JSF).
> > >
> > > regards,
> > >
> > > Leonardo Uribe
> > >
> > >
> > > 2014-09-04 15:25 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > >> the issue is wars of an ear inherit from "lib" beans so mf shouldn't
> > >> use it (can be done adding a bean with a generated name by webapp -
> > >> and get the name from the servlet context for instance)
> > >>
> > >> on tomee side we can skip mf cdi beans in ear lib part if it can help
> > >>
> > >>
> > >> Romain Manni-Bucau
> > >> Twitter: @rmannibucau
> > >> Blog: http://rmannibucau.wordpress.com/
> > >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > >> Github: https://github.com/rmannibucau
> > >>
> > >>
> > >> 2014-09-04 22:23 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > >> > @Leonardo: with ears?
> > >> >
> > >> >
> > >> > Romain Manni-Bucau
> > >> > Twitter: @rmannibucau
> > >> > Blog: http://rmannibucau.wordpress.com/
> > >> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > >> > Github: https://github.com/rmannibucau
> > >> >
> > >> >
> > >> > 2014-09-04 22:12 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> > >> >> Hi
> > >> >>
> > >> >> I have tested the latest snapshot from trunk and it is working with
> > >> tomee
> > >> >> 1.7.0. I don't see any exception from this side.
> > >> >>
> > >> >> regards,
> > >> >>
> > >> >> Leonardo Uribe
> > >> >>
> > >> >>
> > >> >> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <maxtorzito@gmail.com
> >:
> > >> >>
> > >> >>> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i
> > want
> > >> to
> > >> >>> use myfaces 2.2.4 because i want to use the
> > >> @javax.faces.view.ViewScoped (i
> > >> >>> use the omnifaces viewscoped) and the f:viewAction.
> > >> >>>
> > >> >>> But again im getting
> > >> javax.enterprise.inject.AmbiguousResolutionException:
> > >> >>> Ambiguous resolution exception that i reported a few months ago,
> > >> apparently
> > >> >>> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
> > >> >>>
> > >> >>> I already reported to tomee mailing list but @Romain sayed
> > >> >>>
> > >> >>> "think so but more a MF issue this time I think"
> > >> >>>
> > >> >>> @Leonardo
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <
> > >> smithh032772@gmail.com>:
> > >> >>>
> > >> >>> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need
> > to
> > >> keep
> > >> >>> > OmniFaces CDI @ViewScoped until someone helps you with your
> issue.
> > >> >>> >
> > >> >>> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI
> > >> @ViewScoped; all
> > >> >>> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped,
> and
> > I
> > >> >>> > experienced no issues. My app is not packaged as an EAR.
> > >> >>> >
> > >> >>> > today, i am using MyFaces 2.2 @ViewScoped beans even though I
> > still
> > >> have
> > >> >>> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI
> > @ViewScoped).
> > >> >>> >
> > >> >>> > For the first day, running MyFaces 2.2, I am quite pleased. No
> > >> issues to
> > >> >>> > report, no exceptions in tomee/tomcat log files.
> > >> >>> >
> > >> >>> >
> > >> >>> >
> > >> >>> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <
> > >> maxtorzito@gmail.com
> > >> >>> > >wrote:
> > >> >>> >
> > >> >>> > > I removed CODI and my app is package as ear. maybe i need to
> try
> > >> tomee
> > >> >>> > > 1.6.1-snapshot
> > >> >>> > >
> > >> >>> > >
> > >> >>> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
> > >> >>> > >
> > >> >>> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
> > >> >>> > maxtorzito@gmail.com
> > >> >>> > > > >wrote:
> > >> >>> > > >
> > >> >>> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee
> lib
> > >> and add
> > >> >>> > > > myfaces
> > >> >>> > > > > api and impl 2.2.0
> > >> >>> > > > >
> > >> >>> > > >
> > >> >>> > > > that's exactly what I did and I don't get the error.
> > >> >>> > > >
> > >> >>> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and
> EAR,
> > >> too?
> > >> >>> > > >
> > >> >>> > >
> > >> >>> > >
> > >> >>> > >
> > >> >>> > > --
> > >> >>> > >
> > -------------------------------------------------------------------
> > >> >>> > > *SCJA. José Luis Cetina*
> > >> >>> > >
> > -------------------------------------------------------------------
> > >> >>> > >
> > >> >>> >
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>> --
> > >> >>>
> -------------------------------------------------------------------
> > >> >>> *José Luis Cetina*
> > >> >>>
> -------------------------------------------------------------------
> > >> >>>
> > >>
> >
>

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Leonardo Uribe <lu...@gmail.com>.
2014-09-04 16:04 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:

> but you can share in both something (common thing is the classloader)
> to match the bean (or name) you need.
>
>
I don't understand. MyFaces just provide the extension points. When and how
the extensions are called are up to CDI and maybe Tomee. I suppose the
AmbiguousResolutionException is caused because MyFaces is loaded twice by
Tomee (when it is using ear). Split that code in a separate jar will not
help.



>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-04 22:38 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> > As you already know, MyFaces provide some extensions and those extensions
> > register some CDI beans. But the way how the dependencies are loaded are
> > controlled by Tomee and by the CDI implementation, in this case OWB. I
> have
> > tried in the past to avoid the CDI beans in the integration point, but it
> > is not possible, you need one in order to hold the beans in the scope,
> and
> > you cannot access JSF from CDI (it works the opposite, access CDI from
> JSF).
> >
> > regards,
> >
> > Leonardo Uribe
> >
> >
> > 2014-09-04 15:25 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> >> the issue is wars of an ear inherit from "lib" beans so mf shouldn't
> >> use it (can be done adding a bean with a generated name by webapp -
> >> and get the name from the servlet context for instance)
> >>
> >> on tomee side we can skip mf cdi beans in ear lib part if it can help
> >>
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >> 2014-09-04 22:23 GMT+02:00 Romain Manni-Bucau <rm...@gmail.com>:
> >> > @Leonardo: with ears?
> >> >
> >> >
> >> > Romain Manni-Bucau
> >> > Twitter: @rmannibucau
> >> > Blog: http://rmannibucau.wordpress.com/
> >> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> > Github: https://github.com/rmannibucau
> >> >
> >> >
> >> > 2014-09-04 22:12 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> >> >> Hi
> >> >>
> >> >> I have tested the latest snapshot from trunk and it is working with
> >> tomee
> >> >> 1.7.0. I don't see any exception from this side.
> >> >>
> >> >> regards,
> >> >>
> >> >> Leonardo Uribe
> >> >>
> >> >>
> >> >> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:
> >> >>
> >> >>> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i
> want
> >> to
> >> >>> use myfaces 2.2.4 because i want to use the
> >> @javax.faces.view.ViewScoped (i
> >> >>> use the omnifaces viewscoped) and the f:viewAction.
> >> >>>
> >> >>> But again im getting
> >> javax.enterprise.inject.AmbiguousResolutionException:
> >> >>> Ambiguous resolution exception that i reported a few months ago,
> >> apparently
> >> >>> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
> >> >>>
> >> >>> I already reported to tomee mailing list but @Romain sayed
> >> >>>
> >> >>> "think so but more a MF issue this time I think"
> >> >>>
> >> >>> @Leonardo
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >>> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <
> >> smithh032772@gmail.com>:
> >> >>>
> >> >>> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need
> to
> >> keep
> >> >>> > OmniFaces CDI @ViewScoped until someone helps you with your issue.
> >> >>> >
> >> >>> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI
> >> @ViewScoped; all
> >> >>> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and
> I
> >> >>> > experienced no issues. My app is not packaged as an EAR.
> >> >>> >
> >> >>> > today, i am using MyFaces 2.2 @ViewScoped beans even though I
> still
> >> have
> >> >>> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI
> @ViewScoped).
> >> >>> >
> >> >>> > For the first day, running MyFaces 2.2, I am quite pleased. No
> >> issues to
> >> >>> > report, no exceptions in tomee/tomcat log files.
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <
> >> maxtorzito@gmail.com
> >> >>> > >wrote:
> >> >>> >
> >> >>> > > I removed CODI and my app is package as ear. maybe i need to try
> >> tomee
> >> >>> > > 1.6.1-snapshot
> >> >>> > >
> >> >>> > >
> >> >>> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
> >> >>> > >
> >> >>> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
> >> >>> > maxtorzito@gmail.com
> >> >>> > > > >wrote:
> >> >>> > > >
> >> >>> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib
> >> and add
> >> >>> > > > myfaces
> >> >>> > > > > api and impl 2.2.0
> >> >>> > > > >
> >> >>> > > >
> >> >>> > > > that's exactly what I did and I don't get the error.
> >> >>> > > >
> >> >>> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR,
> >> too?
> >> >>> > > >
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> >>> > > --
> >> >>> > >
> -------------------------------------------------------------------
> >> >>> > > *SCJA. José Luis Cetina*
> >> >>> > >
> -------------------------------------------------------------------
> >> >>> > >
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> -------------------------------------------------------------------
> >> >>> *José Luis Cetina*
> >> >>> -------------------------------------------------------------------
> >> >>>
> >>
>

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Romain Manni-Bucau <rm...@gmail.com>.
but you can share in both something (common thing is the classloader)
to match the bean (or name) you need.


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 22:38 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> As you already know, MyFaces provide some extensions and those extensions
> register some CDI beans. But the way how the dependencies are loaded are
> controlled by Tomee and by the CDI implementation, in this case OWB. I have
> tried in the past to avoid the CDI beans in the integration point, but it
> is not possible, you need one in order to hold the beans in the scope, and
> you cannot access JSF from CDI (it works the opposite, access CDI from JSF).
>
> regards,
>
> Leonardo Uribe
>
>
> 2014-09-04 15:25 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:
>
>> the issue is wars of an ear inherit from "lib" beans so mf shouldn't
>> use it (can be done adding a bean with a generated name by webapp -
>> and get the name from the servlet context for instance)
>>
>> on tomee side we can skip mf cdi beans in ear lib part if it can help
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-04 22:23 GMT+02:00 Romain Manni-Bucau <rm...@gmail.com>:
>> > @Leonardo: with ears?
>> >
>> >
>> > Romain Manni-Bucau
>> > Twitter: @rmannibucau
>> > Blog: http://rmannibucau.wordpress.com/
>> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> > Github: https://github.com/rmannibucau
>> >
>> >
>> > 2014-09-04 22:12 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
>> >> Hi
>> >>
>> >> I have tested the latest snapshot from trunk and it is working with
>> tomee
>> >> 1.7.0. I don't see any exception from this side.
>> >>
>> >> regards,
>> >>
>> >> Leonardo Uribe
>> >>
>> >>
>> >> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:
>> >>
>> >>> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want
>> to
>> >>> use myfaces 2.2.4 because i want to use the
>> @javax.faces.view.ViewScoped (i
>> >>> use the omnifaces viewscoped) and the f:viewAction.
>> >>>
>> >>> But again im getting
>> javax.enterprise.inject.AmbiguousResolutionException:
>> >>> Ambiguous resolution exception that i reported a few months ago,
>> apparently
>> >>> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
>> >>>
>> >>> I already reported to tomee mailing list but @Romain sayed
>> >>>
>> >>> "think so but more a MF issue this time I think"
>> >>>
>> >>> @Leonardo
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <
>> smithh032772@gmail.com>:
>> >>>
>> >>> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need to
>> keep
>> >>> > OmniFaces CDI @ViewScoped until someone helps you with your issue.
>> >>> >
>> >>> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI
>> @ViewScoped; all
>> >>> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
>> >>> > experienced no issues. My app is not packaged as an EAR.
>> >>> >
>> >>> > today, i am using MyFaces 2.2 @ViewScoped beans even though I still
>> have
>> >>> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
>> >>> >
>> >>> > For the first day, running MyFaces 2.2, I am quite pleased. No
>> issues to
>> >>> > report, no exceptions in tomee/tomcat log files.
>> >>> >
>> >>> >
>> >>> >
>> >>> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <
>> maxtorzito@gmail.com
>> >>> > >wrote:
>> >>> >
>> >>> > > I removed CODI and my app is package as ear. maybe i need to try
>> tomee
>> >>> > > 1.6.1-snapshot
>> >>> > >
>> >>> > >
>> >>> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
>> >>> > >
>> >>> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
>> >>> > maxtorzito@gmail.com
>> >>> > > > >wrote:
>> >>> > > >
>> >>> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib
>> and add
>> >>> > > > myfaces
>> >>> > > > > api and impl 2.2.0
>> >>> > > > >
>> >>> > > >
>> >>> > > > that's exactly what I did and I don't get the error.
>> >>> > > >
>> >>> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR,
>> too?
>> >>> > > >
>> >>> > >
>> >>> > >
>> >>> > >
>> >>> > > --
>> >>> > > -------------------------------------------------------------------
>> >>> > > *SCJA. José Luis Cetina*
>> >>> > > -------------------------------------------------------------------
>> >>> > >
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> -------------------------------------------------------------------
>> >>> *José Luis Cetina*
>> >>> -------------------------------------------------------------------
>> >>>
>>

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Leonardo Uribe <lu...@gmail.com>.
As you already know, MyFaces provide some extensions and those extensions
register some CDI beans. But the way how the dependencies are loaded are
controlled by Tomee and by the CDI implementation, in this case OWB. I have
tried in the past to avoid the CDI beans in the integration point, but it
is not possible, you need one in order to hold the beans in the scope, and
you cannot access JSF from CDI (it works the opposite, access CDI from JSF).

regards,

Leonardo Uribe


2014-09-04 15:25 GMT-05:00 Romain Manni-Bucau <rm...@gmail.com>:

> the issue is wars of an ear inherit from "lib" beans so mf shouldn't
> use it (can be done adding a bean with a generated name by webapp -
> and get the name from the servlet context for instance)
>
> on tomee side we can skip mf cdi beans in ear lib part if it can help
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-04 22:23 GMT+02:00 Romain Manni-Bucau <rm...@gmail.com>:
> > @Leonardo: with ears?
> >
> >
> > Romain Manni-Bucau
> > Twitter: @rmannibucau
> > Blog: http://rmannibucau.wordpress.com/
> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > Github: https://github.com/rmannibucau
> >
> >
> > 2014-09-04 22:12 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> >> Hi
> >>
> >> I have tested the latest snapshot from trunk and it is working with
> tomee
> >> 1.7.0. I don't see any exception from this side.
> >>
> >> regards,
> >>
> >> Leonardo Uribe
> >>
> >>
> >> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:
> >>
> >>> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want
> to
> >>> use myfaces 2.2.4 because i want to use the
> @javax.faces.view.ViewScoped (i
> >>> use the omnifaces viewscoped) and the f:viewAction.
> >>>
> >>> But again im getting
> javax.enterprise.inject.AmbiguousResolutionException:
> >>> Ambiguous resolution exception that i reported a few months ago,
> apparently
> >>> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
> >>>
> >>> I already reported to tomee mailing list but @Romain sayed
> >>>
> >>> "think so but more a MF issue this time I think"
> >>>
> >>> @Leonardo
> >>>
> >>>
> >>>
> >>>
> >>> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <
> smithh032772@gmail.com>:
> >>>
> >>> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need to
> keep
> >>> > OmniFaces CDI @ViewScoped until someone helps you with your issue.
> >>> >
> >>> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI
> @ViewScoped; all
> >>> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
> >>> > experienced no issues. My app is not packaged as an EAR.
> >>> >
> >>> > today, i am using MyFaces 2.2 @ViewScoped beans even though I still
> have
> >>> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
> >>> >
> >>> > For the first day, running MyFaces 2.2, I am quite pleased. No
> issues to
> >>> > report, no exceptions in tomee/tomcat log files.
> >>> >
> >>> >
> >>> >
> >>> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <
> maxtorzito@gmail.com
> >>> > >wrote:
> >>> >
> >>> > > I removed CODI and my app is package as ear. maybe i need to try
> tomee
> >>> > > 1.6.1-snapshot
> >>> > >
> >>> > >
> >>> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
> >>> > >
> >>> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
> >>> > maxtorzito@gmail.com
> >>> > > > >wrote:
> >>> > > >
> >>> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib
> and add
> >>> > > > myfaces
> >>> > > > > api and impl 2.2.0
> >>> > > > >
> >>> > > >
> >>> > > > that's exactly what I did and I don't get the error.
> >>> > > >
> >>> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR,
> too?
> >>> > > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > --
> >>> > > -------------------------------------------------------------------
> >>> > > *SCJA. José Luis Cetina*
> >>> > > -------------------------------------------------------------------
> >>> > >
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> -------------------------------------------------------------------
> >>> *José Luis Cetina*
> >>> -------------------------------------------------------------------
> >>>
>

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Romain Manni-Bucau <rm...@gmail.com>.
the issue is wars of an ear inherit from "lib" beans so mf shouldn't
use it (can be done adding a bean with a generated name by webapp -
and get the name from the servlet context for instance)

on tomee side we can skip mf cdi beans in ear lib part if it can help


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 22:23 GMT+02:00 Romain Manni-Bucau <rm...@gmail.com>:
> @Leonardo: with ears?
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-04 22:12 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
>> Hi
>>
>> I have tested the latest snapshot from trunk and it is working with tomee
>> 1.7.0. I don't see any exception from this side.
>>
>> regards,
>>
>> Leonardo Uribe
>>
>>
>> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:
>>
>>> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want to
>>> use myfaces 2.2.4 because i want to use the @javax.faces.view.ViewScoped (i
>>> use the omnifaces viewscoped) and the f:viewAction.
>>>
>>> But again im getting javax.enterprise.inject.AmbiguousResolutionException:
>>> Ambiguous resolution exception that i reported a few months ago, apparently
>>> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
>>>
>>> I already reported to tomee mailing list but @Romain sayed
>>>
>>> "think so but more a MF issue this time I think"
>>>
>>> @Leonardo
>>>
>>>
>>>
>>>
>>> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <sm...@gmail.com>:
>>>
>>> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need to keep
>>> > OmniFaces CDI @ViewScoped until someone helps you with your issue.
>>> >
>>> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI @ViewScoped; all
>>> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
>>> > experienced no issues. My app is not packaged as an EAR.
>>> >
>>> > today, i am using MyFaces 2.2 @ViewScoped beans even though I still have
>>> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
>>> >
>>> > For the first day, running MyFaces 2.2, I am quite pleased. No issues to
>>> > report, no exceptions in tomee/tomcat log files.
>>> >
>>> >
>>> >
>>> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <maxtorzito@gmail.com
>>> > >wrote:
>>> >
>>> > > I removed CODI and my app is package as ear. maybe i need to try tomee
>>> > > 1.6.1-snapshot
>>> > >
>>> > >
>>> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
>>> > >
>>> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
>>> > maxtorzito@gmail.com
>>> > > > >wrote:
>>> > > >
>>> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
>>> > > > myfaces
>>> > > > > api and impl 2.2.0
>>> > > > >
>>> > > >
>>> > > > that's exactly what I did and I don't get the error.
>>> > > >
>>> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?
>>> > > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > -------------------------------------------------------------------
>>> > > *SCJA. José Luis Cetina*
>>> > > -------------------------------------------------------------------
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>> -------------------------------------------------------------------
>>> *José Luis Cetina*
>>> -------------------------------------------------------------------
>>>

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Romain Manni-Bucau <rm...@gmail.com>.
@Leonardo: with ears?


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 22:12 GMT+02:00 Leonardo Uribe <lu...@gmail.com>:
> Hi
>
> I have tested the latest snapshot from trunk and it is working with tomee
> 1.7.0. I don't see any exception from this side.
>
> regards,
>
> Leonardo Uribe
>
>
> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:
>
>> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want to
>> use myfaces 2.2.4 because i want to use the @javax.faces.view.ViewScoped (i
>> use the omnifaces viewscoped) and the f:viewAction.
>>
>> But again im getting javax.enterprise.inject.AmbiguousResolutionException:
>> Ambiguous resolution exception that i reported a few months ago, apparently
>> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
>>
>> I already reported to tomee mailing list but @Romain sayed
>>
>> "think so but more a MF issue this time I think"
>>
>> @Leonardo
>>
>>
>>
>>
>> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <sm...@gmail.com>:
>>
>> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need to keep
>> > OmniFaces CDI @ViewScoped until someone helps you with your issue.
>> >
>> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI @ViewScoped; all
>> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
>> > experienced no issues. My app is not packaged as an EAR.
>> >
>> > today, i am using MyFaces 2.2 @ViewScoped beans even though I still have
>> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
>> >
>> > For the first day, running MyFaces 2.2, I am quite pleased. No issues to
>> > report, no exceptions in tomee/tomcat log files.
>> >
>> >
>> >
>> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <maxtorzito@gmail.com
>> > >wrote:
>> >
>> > > I removed CODI and my app is package as ear. maybe i need to try tomee
>> > > 1.6.1-snapshot
>> > >
>> > >
>> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
>> > >
>> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
>> > maxtorzito@gmail.com
>> > > > >wrote:
>> > > >
>> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
>> > > > myfaces
>> > > > > api and impl 2.2.0
>> > > > >
>> > > >
>> > > > that's exactly what I did and I don't get the error.
>> > > >
>> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > -------------------------------------------------------------------
>> > > *SCJA. José Luis Cetina*
>> > > -------------------------------------------------------------------
>> > >
>> >
>>
>>
>>
>> --
>> -------------------------------------------------------------------
>> *José Luis Cetina*
>> -------------------------------------------------------------------
>>

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by José Luis Cetina <ma...@gmail.com>.
i will try to reproduce it, the issue apparently is with ears


2014-09-04 15:12 GMT-05:00 Leonardo Uribe <lu...@gmail.com>:

> Hi
>
> I have tested the latest snapshot from trunk and it is working with tomee
> 1.7.0. I don't see any exception from this side.
>
> regards,
>
> Leonardo Uribe
>
>
> 2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:
>
> > Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want to
> > use myfaces 2.2.4 because i want to use the @javax.faces.view.ViewScoped
> (i
> > use the omnifaces viewscoped) and the f:viewAction.
> >
> > But again im getting
> javax.enterprise.inject.AmbiguousResolutionException:
> > Ambiguous resolution exception that i reported a few months ago,
> apparently
> > myfaces 2.2.4 is not working with ears in tomee 1.7.0.
> >
> > I already reported to tomee mailing list but @Romain sayed
> >
> > "think so but more a MF issue this time I think"
> >
> > @Leonardo
> >
> >
> >
> >
> > 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <smithh032772@gmail.com
> >:
> >
> > > if you are not able to use MyFaces 2.2 @ViewScoped, you may need to
> keep
> > > OmniFaces CDI @ViewScoped until someone helps you with your issue.
> > >
> > > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI @ViewScoped;
> all
> > > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
> > > experienced no issues. My app is not packaged as an EAR.
> > >
> > > today, i am using MyFaces 2.2 @ViewScoped beans even though I still
> have
> > > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
> > >
> > > For the first day, running MyFaces 2.2, I am quite pleased. No issues
> to
> > > report, no exceptions in tomee/tomcat log files.
> > >
> > >
> > >
> > > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <
> maxtorzito@gmail.com
> > > >wrote:
> > >
> > > > I removed CODI and my app is package as ear. maybe i need to try
> tomee
> > > > 1.6.1-snapshot
> > > >
> > > >
> > > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
> > > >
> > > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
> > > maxtorzito@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib and
> add
> > > > > myfaces
> > > > > > api and impl 2.2.0
> > > > > >
> > > > >
> > > > > that's exactly what I did and I don't get the error.
> > > > >
> > > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------------------------
> > > > *SCJA. José Luis Cetina*
> > > > -------------------------------------------------------------------
> > > >
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*José Luis Cetina*
-------------------------------------------------------------------

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

I have tested the latest snapshot from trunk and it is working with tomee
1.7.0. I don't see any exception from this side.

regards,

Leonardo Uribe


2014-09-03 17:23 GMT-05:00 José Luis Cetina <ma...@gmail.com>:

> Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want to
> use myfaces 2.2.4 because i want to use the @javax.faces.view.ViewScoped (i
> use the omnifaces viewscoped) and the f:viewAction.
>
> But again im getting javax.enterprise.inject.AmbiguousResolutionException:
> Ambiguous resolution exception that i reported a few months ago, apparently
> myfaces 2.2.4 is not working with ears in tomee 1.7.0.
>
> I already reported to tomee mailing list but @Romain sayed
>
> "think so but more a MF issue this time I think"
>
> @Leonardo
>
>
>
>
> 2014-01-15 17:14 GMT-06:00 Howard W. Smith, Jr. <sm...@gmail.com>:
>
> > if you are not able to use MyFaces 2.2 @ViewScoped, you may need to keep
> > OmniFaces CDI @ViewScoped until someone helps you with your issue.
> >
> > Some months ago, I tested MyFaces 2.2 with OmniFaces CDI @ViewScoped; all
> > of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
> > experienced no issues. My app is not packaged as an EAR.
> >
> > today, i am using MyFaces 2.2 @ViewScoped beans even though I still have
> > OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).
> >
> > For the first day, running MyFaces 2.2, I am quite pleased. No issues to
> > report, no exceptions in tomee/tomcat log files.
> >
> >
> >
> > On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina <maxtorzito@gmail.com
> > >wrote:
> >
> > > I removed CODI and my app is package as ear. maybe i need to try tomee
> > > 1.6.1-snapshot
> > >
> > >
> > > 2014/1/15 Howard W. Smith, Jr. <sm...@gmail.com>
> > >
> > > > On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina <
> > maxtorzito@gmail.com
> > > > >wrote:
> > > >
> > > > > I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
> > > > myfaces
> > > > > api and impl 2.2.0
> > > > >
> > > >
> > > > that's exactly what I did and I don't get the error.
> > > >
> > > > Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?
> > > >
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> >
>
>
>
> --
> -------------------------------------------------------------------
> *José Luis Cetina*
> -------------------------------------------------------------------
>