Results 1 to 6 of 6

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

  1. #1
    Join Date
    Oct 2010
    Posts
    5

    Question <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.
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2006
    Location
    Brooklyn
    Posts
    556

    Default

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

  3. #3
    Join Date
    Sep 2008
    Posts
    14

    Default

    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

  4. #4
    Join Date
    Aug 2006
    Location
    Brooklyn
    Posts
    556

    Default

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

  5. #5
    Join Date
    Sep 2008
    Posts
    14

    Default

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

    Regards
    hd

  6. #6
    Join Date
    Jan 2010
    Posts
    13

    Default

    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.

Tags for this Thread

Posting Permissions

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