Bonjour,
Ayant installé Maven et Spring sous Netbeans,
1 2 3 4 5 6 7 8 9 10 11
|
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>2.0.4</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>2.5.6</version>
</dependency> |
Une erreur survient :
Caused by: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 130; cvc-elt.1: Cannot find the declaration of element 'root'.
Après des recherches sur Internet, il est probable que ce problème vienne de la mauvaise correspondance de la déclaration dans Maven et dans application-web.xml :
1 2 3 4 5
| <root xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"> |
Auriez-vous une idée,
Merci par avance,
PS : J'ai aussi essayé avec...
xsi:schemaLocation="http://www.springframework.org/core/beans http://www.springframework.org/schema/core/spring-core-2.5.6.xsd
Partager