You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mauro2java2011 <ma...@gmail.com> on 2014/06/22 21:46:07 UTC

use myfaces 2.2.4 into tomee 1.6.0.2. i have success with it.

hi all . i have tried to substitute the jars files for myfaces .
So i have downloaded from website of myfaces the jar
myfaces-bundle-2.2.4-20140621.150616-46.jar .

It contain both api and iml. 
next i have removed the jars files of myfaces 2.1 : myfaces-api-2.1.13.jar
and myfaces-impl-2.1.13.jar .
next i have start tomee and i have noted that the faces-config.xml it is
read from other jars:
---------------------------------------------------------------------

INFORMAZIONI: Reading config :
jar:file:/E:/documenti_mauro/myfaces2.2.4/tomee_1.6.0.2/apache-tomee-plus-1.6.0.2/lib/openwebbeans-el22-1.2.1.jar!/META-INF/faces-config.xml
giu 21, 2014 11:11:52 PM
org.apache.myfaces.config.DefaultFacesConfigurationProvider
getClassloaderFacesConfig
INFORMAZIONI: Reading config :
jar:file:/E:/documenti_mauro/myfaces2.2.4/tomee_1.6.0.2/apache-tomee-plus-1.6.0.2/lib/openwebbeans-jsf-1.2.1.jar!/META-INF/faces-config.xml
---------------------------------------------------------------------

the openwebbeans-el22-1.2.1.jar contain a faces-config.xml with
configuration for the EL resolver:


<faces-config>
- <application>
  <el-resolver>org.apache.webbeans.el22.WebBeansELResolver</el-resolver> 
  </application>
  </faces-config>
so i not changed.
---------------------------
into the openwebbeans-jsf-1.2.1.jar i have changed the 

<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">

my correction now is:


- <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd" version="2.2">
  <name>org_apache_openwebbeans</name> 
- <factory>
 
<application-factory>org.apache.webbeans.jsf.OwbApplicationFactory</application-factory> 
  </factory>
- <application>
 
<view-handler>org.apache.webbeans.jsf.ConversationAwareViewHandler</view-handler> 
  </application>
- <lifecycle>
 
<phase-listener>org.apache.webbeans.jsf.WebBeansPhaseListener</phase-listener> 
  </lifecycle>
  </faces-config>
----------------------------------------------------------
so the correct configuration for myfaces 2.2 is loaded and not the old 2.0
version .

i hope that my supposition it is of help for other users.
I have tried a example of component <h:inputFile> and it work .!!!!!

I would know your comment.

mauro





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/use-myfaces-2-2-4-into-tomee-1-6-0-2-i-have-success-with-it-tp4670142.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: use myfaces 2.2.4 into tomee 1.6.0.2. i have success with it.

Posted by mauro2java2011 <ma...@gmail.com>.
I have tested with examples jsf2,2 from jsflive  website .

https://github.com/jsflive/jsf22-examples

and work . I have changed from examples where use @ManagedBean with @Inject
and added implements Serializable into ViewScoped and @ApplicationScoped
and correct the import because the examples use the managedbeans and not
cdi beans.

But finally tomee work with myfaces 2.2.4snapshot .
Il 22/giu/2014 22:35 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
ml-node+s979440n4670144h39@n4.nabble.com> ha scritto:

> You mean myfaces doesnt read all faces-config? Looks like a bug. Tomee
> doesnt support 2.2 version btw. So it would work if you dont use 2.2
> features of descriptors
>
> Le dimanche 22 juin 2014, mauro2java2011 <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4670144&i=0>> a
> écrit :
>
> > hi all . i have tried to substitute the jars files for myfaces .
> > So i have downloaded from website of myfaces the jar
> > myfaces-bundle-2.2.4-20140621.150616-46.jar .
> >
> > It contain both api and iml.
> > next i have removed the jars files of myfaces 2.1 :
> myfaces-api-2.1.13.jar
> > and myfaces-impl-2.1.13.jar .
> > next i have start tomee and i have noted that the faces-config.xml it is
> > read from other jars:
> > ---------------------------------------------------------------------
> >
> > INFORMAZIONI: Reading config :
> >
> jar:file:/E:/documenti_mauro/myfaces2.2.4/tomee_1.6.0.2/apache-tomee-plus-1.6.0.2/lib/openwebbeans-el22-1.2.1.jar!/META-INF/faces-config.xml
>
> > giu 21, 2014 11:11:52 PM
> > org.apache.myfaces.config.DefaultFacesConfigurationProvider
> > getClassloaderFacesConfig
> > INFORMAZIONI: Reading config :
> >
> jar:file:/E:/documenti_mauro/myfaces2.2.4/tomee_1.6.0.2/apache-tomee-plus-1.6.0.2/lib/openwebbeans-jsf-1.2.1.jar!/META-INF/faces-config.xml
>
>
> > ---------------------------------------------------------------------
> >
> > the openwebbeans-el22-1.2.1.jar contain a faces-config.xml with
> > configuration for the EL resolver:
> >
> >
> > <faces-config>
> > - <application>
> >   <el-resolver>org.apache.webbeans.el22.WebBeansELResolver</el-resolver>
> >   </application>
> >   </faces-config>
> > so i not changed.
> > ---------------------------
> > into the openwebbeans-jsf-1.2.1.jar i have changed the
> >
> > <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
> > xmlns:xi="http://www.w3.org/2001/XInclude"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
> >
> > my correction now is:
> >
> >
> > - <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
> > http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
> version="2.2">
> >   <name>org_apache_openwebbeans</name>
> > - <factory>
> >
> >
> <application-factory>org.apache.webbeans.jsf.OwbApplicationFactory</application-factory>
>
> >   </factory>
> > - <application>
> >
> >
> <view-handler>org.apache.webbeans.jsf.ConversationAwareViewHandler</view-handler>
>
> >   </application>
> > - <lifecycle>
> >
> >
> <phase-listener>org.apache.webbeans.jsf.WebBeansPhaseListener</phase-listener>
>
>
> >   </lifecycle>
> >   </faces-config>
> > ----------------------------------------------------------
> > so the correct configuration for myfaces 2.2 is loaded and not the old
> 2.0
> > version .
> >
> > i hope that my supposition it is of help for other users.
> > I have tried a example of component <h:inputFile> and it work .!!!!!
> >
> > I would know your comment.
> >
> > mauro
> >
> >
> >
> >
> >
> > --
> > View this message in context:
>
> http://tomee-openejb.979440.n4.nabble.com/use-myfaces-2-2-4-into-tomee-1-6-0-2-i-have-success-with-it-tp4670142.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
> --
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://openejb.979440.n4.nabble.com/use-myfaces-2-2-4-into-tomee-1-6-0-2-i-have-success-with-it-tp4670142p4670144.html
>  To unsubscribe from use myfaces 2.2.4 into tomee 1.6.0.2. i have success
> with it., click here
> <http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4670142&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NzAxNDJ8LTExMTcxODc2MjU=>
> .
> NAML
> <http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/use-myfaces-2-2-4-into-tomee-1-6-0-2-i-have-success-with-it-tp4670142p4670151.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: use myfaces 2.2.4 into tomee 1.6.0.2. i have success with it.

Posted by Romain Manni-Bucau <rm...@gmail.com>.
You mean myfaces doesnt read all faces-config? Looks like a bug. Tomee
doesnt support 2.2 version btw. So it would work if you dont use 2.2
features of descriptors

Le dimanche 22 juin 2014, mauro2java2011 <ma...@gmail.com> a
écrit :
> hi all . i have tried to substitute the jars files for myfaces .
> So i have downloaded from website of myfaces the jar
> myfaces-bundle-2.2.4-20140621.150616-46.jar .
>
> It contain both api and iml.
> next i have removed the jars files of myfaces 2.1 : myfaces-api-2.1.13.jar
> and myfaces-impl-2.1.13.jar .
> next i have start tomee and i have noted that the faces-config.xml it is
> read from other jars:
> ---------------------------------------------------------------------
>
> INFORMAZIONI: Reading config :
>
jar:file:/E:/documenti_mauro/myfaces2.2.4/tomee_1.6.0.2/apache-tomee-plus-1.6.0.2/lib/openwebbeans-el22-1.2.1.jar!/META-INF/faces-config.xml
> giu 21, 2014 11:11:52 PM
> org.apache.myfaces.config.DefaultFacesConfigurationProvider
> getClassloaderFacesConfig
> INFORMAZIONI: Reading config :
>
jar:file:/E:/documenti_mauro/myfaces2.2.4/tomee_1.6.0.2/apache-tomee-plus-1.6.0.2/lib/openwebbeans-jsf-1.2.1.jar!/META-INF/faces-config.xml
> ---------------------------------------------------------------------
>
> the openwebbeans-el22-1.2.1.jar contain a faces-config.xml with
> configuration for the EL resolver:
>
>
> <faces-config>
> - <application>
>   <el-resolver>org.apache.webbeans.el22.WebBeansELResolver</el-resolver>
>   </application>
>   </faces-config>
> so i not changed.
> ---------------------------
> into the openwebbeans-jsf-1.2.1.jar i have changed the
>
> <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
>
> my correction now is:
>
>
> - <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
> http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd" version="2.2">
>   <name>org_apache_openwebbeans</name>
> - <factory>
>
>
<application-factory>org.apache.webbeans.jsf.OwbApplicationFactory</application-factory>
>   </factory>
> - <application>
>
>
<view-handler>org.apache.webbeans.jsf.ConversationAwareViewHandler</view-handler>
>   </application>
> - <lifecycle>
>
>
<phase-listener>org.apache.webbeans.jsf.WebBeansPhaseListener</phase-listener>
>   </lifecycle>
>   </faces-config>
> ----------------------------------------------------------
> so the correct configuration for myfaces 2.2 is loaded and not the old 2.0
> version .
>
> i hope that my supposition it is of help for other users.
> I have tried a example of component <h:inputFile> and it work .!!!!!
>
> I would know your comment.
>
> mauro
>
>
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/use-myfaces-2-2-4-into-tomee-1-6-0-2-i-have-success-with-it-tp4670142.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

-- 


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