Problème de configuration de servlet.xml
Bonjour à tous,
je suis en train de me former pour mettre en place un web service sur une application cependant je rencontre un problème avec le fichier spring-ws-servlet.xml.
En effet lorsque je tente de tester mon service je tombe sur :
Citation:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 7 in XML document from ServletContext resource [/WEB-INF/spring-ws-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
Voici mon fichier spring-ws-servlet.xml :
Code:
1 2 3 4 5 6 7
| <?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:oxm="http://www.springframework.org/schema/oxm"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schem...-beans-2.5.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd"> |
D'après ce que j'ai trouvé sur les différents forum ce serait lié à ma version de spring, qui est la 2.5.6.
Je pense que le problème vient du jar spring-ws-1.5.9-all.jar qui contient spring-oxm-1.5.xsd cependant le lien http://www.springframework.org/schem...ng-oxm-1.5.xsd ne mene à rien.
J'ai beau tente de modifier mon fichier avec le lien http://www.springframework.org/schem...ng-oxm-3.2.xsd cela ne fonctionne pas puisque de toute façon le jar indique la version 1.5.
Je vous remercie d'avance pour les réponses.