You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by gilbertoca <gi...@gmail.com> on 2016/09/01 14:36:23 UTC

[TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

Hi everyone! 

Is it possible to use mojarra with tomee-embedded-maven-plugin, like we do
with other jpa implementation?
I didn't find an openejb-jsf-integration.
I ask because I'm getting this exception:


My config
https://gist.github.com/gilbertoca/ac8ef777082551908bff9a64a61267a6

Regards,

Gilberto



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-with-tomee-embedded-maven-plugin-tp4680001.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le 2 sept. 2016 01:28, "gilbertoca" <gi...@gmail.com> a écrit :
>
> Romain Manni-Bucau wrote
> > your exception litterally means "you use myfaces-api instead of mojarra
> > api" if you check the line of the NPE. Just exclude myfaces-api (and no
> > you
> > didnt do it if you check a dependency tree you see that openejb-core
> > doesnt
> > bring it but tomee does)
>
> Ok. In my mind the relation was:
> tomee-embedded  --> openejb-core -->myfaces
>

That is why mvn helps ;)

Openejb core is not about web is term of deps.

> I've fixed it -
>
https://gist.github.com/gilbertoca/ac8ef777082551908bff9a64a61267a6#file-tomee-embedded-eclipselink-mojarra-maven-plugin-xml
>
> I couldn't check dependency tree for the plugin - I can do it for the
> project I think.
> This site help me to check the dependency
>
https://www.versioneye.com/java/org.apache.tomee.maven:tomee-embedded-maven-plugin/7.0.1
>

Copy plugin deps in a fake project, that is the fastest IMO.

> Thank you!!
>
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-with-tomee-embedded-maven-plugin-tp4680001p4680009.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

Posted by gilbertoca <gi...@gmail.com>.
Romain Manni-Bucau wrote
> your exception litterally means "you use myfaces-api instead of mojarra
> api" if you check the line of the NPE. Just exclude myfaces-api (and no
> you
> didnt do it if you check a dependency tree you see that openejb-core
> doesnt
> bring it but tomee does)

Ok. In my mind the relation was:
tomee-embedded  --> openejb-core -->myfaces

I've fixed it -
https://gist.github.com/gilbertoca/ac8ef777082551908bff9a64a61267a6#file-tomee-embedded-eclipselink-mojarra-maven-plugin-xml

I couldn't check dependency tree for the plugin - I can do it for the
project I think.
This site help me to check the dependency 
https://www.versioneye.com/java/org.apache.tomee.maven:tomee-embedded-maven-plugin/7.0.1

Thank you!!




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-with-tomee-embedded-maven-plugin-tp4680001p4680009.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
your exception litterally means "you use myfaces-api instead of mojarra
api" if you check the line of the NPE. Just exclude myfaces-api (and no you
didnt do it if you check a dependency tree you see that openejb-core doesnt
bring it but tomee does)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-09-01 16:52 GMT+02:00 gilbertoca <gi...@gmail.com>:

> Romain Manni-Bucau wrote
> > tomee-mojarra is the one but you can need to keep tomee-myfaces I think
>
> It makes no difference. Same exception.
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-
> with-tomee-embedded-maven-plugin-tp4680001p4680005.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

Posted by gilbertoca <gi...@gmail.com>.
Romain Manni-Bucau wrote
> tomee-mojarra is the one but you can need to keep tomee-myfaces I think

It makes no difference. Same exception.





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-with-tomee-embedded-maven-plugin-tp4680001p4680005.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: [TomEE 7.0.1] Is it possible to use mojarra with tomee-embedded-maven-plugin ?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
tomee-mojarra is the one but you can need to keep tomee-myfaces I think


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-09-01 16:36 GMT+02:00 gilbertoca <gi...@gmail.com>:

> Hi everyone!
>
> Is it possible to use mojarra with tomee-embedded-maven-plugin, like we do
> with other jpa implementation?
> I didn't find an openejb-jsf-integration.
> I ask because I'm getting this exception:
>
>
> My config
> https://gist.github.com/gilbertoca/ac8ef777082551908bff9a64a61267a6
>
> Regards,
>
> Gilberto
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-7-0-1-Is-it-possible-to-use-mojarra-
> with-tomee-embedded-maven-plugin-tp4680001.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>