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 <[email protected]> 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
