Announcement Announcement Module
Collapse
No announcement yet.
<faces:resources /> get me a org.xml.sax.SAXParseException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <faces:resources /> get me a org.xml.sax.SAXParseException

    I tried to configure WebFlow 2.2 + JSF 2 + Hibernate 3.6 but i stuck on:

    Code:
    ERROR org.springframework.web.servlet.DispatcherServlet  - Context initialization failedorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 65 in XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.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 have a:
    Code:
        <faces:resources />
    in my dispatcher-servlet.xml and org.springframework.faces in my pom.
    Anyone got clue?

    Log, pom, config files in attachments.
    And sorry for my fatal English.

  • #2
    You org.springframework.faces needs to be 2.2.0.RELEASE not 2.0.5.RELEASE.

    Comment


    • #3
      I'm having a similar problem.

      I have 2.2.1.RELEASE as a dependency (and everything runs smooth) but STS 2.5.1 says "Cannot locate BeanDefinitionParser for element [resources]".

      Any ideas?

      Thanks,
      hd

      Comment


      • #4
        Try the "Load NamespaceHandlers and XSDs from project's classpath" option in the preferences under spring -> beans support -> namespaces.

        Comment


        • #5
          Thanks for the hint. Unfortunately it didn't change anything for me after a rebuild and restart.

          Regards
          hd

          Comment


          • #6
            The solution Rossen suggested works for me, but it required a clean of all projects. I also cleaned out all downloaded content in my repository, though I am not sure that it was completely necessery.

            Comment

            Working...
            X