Thought that the provided scope wouldn't interfere on tests. My idea with
the javax.faces-api was to avoid compilation problems, as
in production MyFaces libs are inside TomEE lib folder.

Another pitfall is that I thought that Mojarra api dependency would be this:
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.12</version>
</dependency>

Glad it's working now, thanks.

2015-12-08 11:11 GMT-02:00 Romain Manni-Bucau <rmannibu...@gmail.com>:

> Sure you use myfaces api? ;)
>
> <dependency>
>    <groupId>javax.faces</groupId>
>    <artifactId>javax.faces-api</artifactId>
>    <version>2.2</version>
>    <scope>provided</scope>
> </dependency>
>
> should be
>
> <dependency>
>    <groupId>org.apache.myfaces.core</groupId>
>    <artifactId>myfaces-api</artifactId>
>    <version>2.2.8</version>
>    <scope>provided</scope>
> </dependency>
>
>
> JSF is a spec where the API chan't be exchanged between implementations.
>
>
>
>
> 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-12-08 12:37 GMT+01:00 Felipe Jaekel <fkjae...@gmail.com>:
>
> > Done: https://github.com/fkjaekel/CdiViewScopeTest
> >
> > Thanks for your time
> >
> > 2015-12-08 7:38 GMT-02:00 Mark Struberg <strub...@yahoo.de>:
> >
> > > +1 for a sample please. Then it will be pretty easy to identify your
> > > problem.
> > >
> > > txs and LieGrue,
> > > strub
> > >
> > > > Am 07.12.2015 um 20:37 schrieb Romain Manni-Bucau <
> > rmannibu...@gmail.com
> > > >:
> > > >
> > > > Myfaces API pick up the proxy map implementation in a hardcoded
> > fashion.
> > > I
> > > > dont see if you have the right classpath how it can fail this way.
> Can
> > > you
> > > > push to github your project to try to reproduce it there?
> > > >
> > >
> > >
> >
>

Reply via email to