[
https://issues.apache.org/jira/browse/OPENEJB-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Louis MONTEIRO closed OPENEJB-1383.
----------------------------------------
Resolution: Fixed
> Error Parsing faces-config.xml
> ------------------------------
>
> Key: OPENEJB-1383
> URL: https://issues.apache.org/jira/browse/OPENEJB-1383
> Project: OpenEJB
> Issue Type: Question
> Components: tomee
> Affects Versions: (trunk/openejb)
> Environment: Tomcat7 SIWPas Simple Web Profile Application Server,
> powered by Apache Tomcat http://code.google.com/p/siwpas/
> Reporter: Victor Soria
> Fix For: 4.5.0
>
>
> I tried deploy an JSF2 application, and this was the result:
> Caused by: org.apache.openejb.OpenEJBException:
> Cannot unmarshall the faces configuration file:
> jar:file:/C:/SIwpas-1.0.0-CR4/SIwpas-1.0.0-CR4/webapps/Actividades/WEB-INF/lib/primefaces-2.2.M1.jar!/META-INF/faces-config.xml:
>
> unexpected element (uri:"http://java.sun.com/xml/ns/javaee",
> local:"partial-view-context-factory").
> Expected elements are
> <{http://java.sun.com/xml/ns/javaee}faces-context-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}tag-handler-delegate-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}visit-context-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}external-context-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}factory-extension>,}
>
> <{http://java.sun.com/xml/ns/javaee}exception-handler-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}application-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}render-kit-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}lifecycle-factory>,
>
> <{http://java.sun.com/xml/ns/javaee}view-declaration-language-factory>
> at
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:563)
> the faces-config starts:
> <?xml version="1.0" encoding="utf-8"?>
> <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
> 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">
> <lifecycle>
>
> <phase-listener>org.primefaces.application.DynamicContentStreamer</phase-listener>
> </lifecycle>
> <factory>
>
> <partial-view-context-factory>org.primefaces.context.PrimePartialViewContextFactory</partial-view-context-factory>
> </factory>
>
> <component>
>
> <component-type>org.primefaces.component.AccordionPanel</component-type>
>
> <component-class>org.primefaces.component.accordionpanel.AccordionPanel</component-class>
> </component>
> ...
> That file is according
> http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd schema.
> Could you tell me wath is my mistake?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira