Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1383

Error Parsing faces-config.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.5.0
    • Component/s: tomee
    • Labels:
      None
    • Environment:
      Tomcat7 SIWPas Simple Web Profile Application Server, powered by Apache Tomcat http://code.google.com/p/siwpas/

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vjsoria Victor Soria
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: