Results 1 to 2 of 2

Thread: JSF 2.0 resources and <faces:resources /> SAX Exception

  1. #1
    Join Date
    Oct 2008
    Location
    On your screen
    Posts
    50

    Default JSF 2.0 resources and <faces:resources /> SAX Exception

    Hello everyone,

    I'm trying to use Spring 3.0.5, Spring Webflow 2.3.0 and JSF 2.0. All the .jars are in place in my web app and I've done all the configuration according to the documentation.

    So, when I'm configuring Spring Webflow, I write <faces:resources /> just like the documentation says, but to my surprise I get an exception that says:

    Code:
    Context initialization failedorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 23 in XML document from ServletContext resource [/WEB-INF/applicationContext-webflow.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'faces:resources'.
    I'm using Netbeans 6.9.1 and the code completion suggests the faces element correctly in the XML.

    What am I doing wrong? Any help is highly appreciated. If you need to see the config files, please don't hesitate to ask and I will upload them or something.

    Once again, thank you very much.

  2. #2
    Join Date
    Oct 2008
    Location
    On your screen
    Posts
    50

    Default

    Ok, I solved this... I don't know if there's a typo in the documentation or if I'm missing something, but when I changed the faces namespace to:

    Code:
    http://www.springframework.org/schema/faces/spring-faces-2.2.xsd
    instead of:

    Code:
    http://www.springframework.org/schema/faces/spring-faces-2.0.xsd
    as the docs say, everything worked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •