Wednesday, October 3, 2012

org.springframework.web.servlet.PageNotFound No mapping found for HTTP request with URI


Problem

I've met the following error on Jboss (7.1.1) with an application using Spring 3.1.1 :
14:35:03,357 WARN  [org.springframework.web.servlet.PageNotFound] (http--127.0.0.1-8080-1) No mapping found for HTTP request with URI [/sandbox-0.0.1-SNAPSHOT/css/design.css] in DispatcherServlet with name 'sandbox'

Solution

You have to add     <mvc:resources mapping="/resources/**" location="/resources/" />


http://stackoverflow.com/questions/1483063/spring-mvc-3-and-handling-static-content-am-i-missing-something