La correspondance générique est stricte, mais aucune déclaration ne peut être trouvé pour l'élément "ressources"

Je sais que c'est un doublon et vous les gens vont me réprimander pour cela, mais je n'ai pas une bonne solution après la lecture de tous les messages.
Je suis en train de construire un Ressort de Modèle au Printemps de la Source de l'Outil de Suite.
J'obtiens l'erreur suivante.

org.springframework.les haricots.usine.xml.XmlBeanDefinitionStoreException: Ligne 16 dans le document XML à partir d'ServletContext de ressources [/WEB-INF/spring/appServlet/servlet-context.xml] n'est pas valide; nested exception est org.xml.sax.SAXParseException: cvc-complexe-type.2.4.c: La mise en correspondance générique est stricte, mais aucune déclaration ne peut être trouvé pour l'élément "ressources".

Mon root-context.xml c'est comme cela:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:cache="http://www.springframework.org/schema/cache"
    xmlns:ehcache="http://www.springmodules.org/schema/ehcache"
    xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
        http://www.springmodules.org/schema/ehcache http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.0.xsd">

    <!-- Root Context: defines shared resources visible to all other web components -->

</beans>

S'il vous plaît laissez-moi savoir si il y a un fichier jar manquant à ma demande.
Ce sont les seuls fichiers jar que j'ai dans mon application:
displaytag-1.0-b3.jar, spring-2.0.6.jar, spring-asm-3.0.3.RELEASE.jar, spring-beans-3.0.3.RELEASE.jar, spring-context-3.0.3.RELEASE.jar, spring-core-3.0.3.RELEASE.jar, spring-expression-3.0.3.RELEASE.jar, spring-hibernate3-2.0.8.jar, spring-web-3.0.3.RELEASE.jar & spring-webmvc-3.0.3.RELEASE.jar

Voici mon servlet-context.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->

    <!-- Enables the Spring MVC @Controller programming model -->
    <annotation-driven />

    <!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
    <resources mapping="/resources/**" location="/resources/" />

    <!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
    <beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <beans:property name="prefix" value="/WEB-INF/views/" />
        <beans:property name="suffix" value=".jsp" />
    </beans:bean>

    <context:component-scan base-package="com.foo.controller" />



</beans:beans>

S'il vous plaît aider...c'est vraiment ennuyeux.

Pourquoi n'avez-vous pas poster le code XML, y compris les "ressources" de l'élément?
Je ne comprends vraiment pas ce qui fichier xml que vous parlez. Cette context.xml est ce que j'ai obtenu. Avec ce fichier en place, il est l'erreur que j'ai mentionné.
L'erreur est d'environ un élément "resources", qui sans doute se produit dans votre XML.
Merci pour la réponse rapide. Il n'y a aucun élément dans mon xml, vous repéré. Mais je ne sais pas si il y a un tel élément à ajouter dans le fichier xml. Pouvez-vous svp me guider?
Montrez votre /WEB-INF/spring/appServlet/servlet-context.xml fichier.

OriginalL'auteur Freakyuser | 2012-11-30