Hello,
J'essaie de monter une application web avec Spring MVC est j'ai l'erreur suivante:Ce qui me fait souffrir le plus c'est que je n'ai déclaré nul part un fichier nommé dispatcher-servlet.xml, je ne sais pas d'ou est ce qu'on me le fait sortir!!java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
voici mon web.xml:
Alors qui cherche le fichier dispatcher-servlet.xml!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>AIG</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/spring/xx-servlet-context.xml /WEB-INF/spring/xx-spring-mvc.xml /WEB-INF/spring/xx-dao-beans.xml /WEB-INF/spring/xx-service-beans.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- step 1: declare the dispatcherServlet --> <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!-- step 2: map dispatcherServlet to http request --> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app>
Merci pour votre collaboration.
Cordialement,
Partager