You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Victor Soria (JIRA)" <ji...@apache.org> on 2010/10/22 23:08:19 UTC

[jira] Created: (OPENEJB-1383) Error Parsing faces-config.xml

Error Parsing faces-config.xml
------------------------------

                 Key: OPENEJB-1383
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1383
             Project: OpenEJB
          Issue Type: Question
          Components: tomcat
    Affects Versions: (trunk/openejb3)
         Environment: Tomcat7 SIWPas Simple Web Profile Application Server, powered by Apache Tomcat  http://code.google.com/p/siwpas/
            Reporter: Victor Soria


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.
-
You can reply to this email to add a comment to the issue online.


[jira] [Updated] (OPENEJB-1383) Error Parsing faces-config.xml

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis MONTEIRO updated OPENEJB-1383:
-----------------------------------------

    Fix Version/s: 4.5.0
    
> 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

[jira] [Closed] (OPENEJB-1383) Error Parsing faces-config.xml

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ 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