Error:
org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/WEB-INF/jsp/summary/homePage.jsp] in DispatcherServlet with name 'spring'
web.xml
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
My page exists in that directory and if the url pattern is setup like <url-pattern>/ANYSTRING/*</url-pattern>
my pages work just fine. To elaborate: My controller uses @RequestMapping(value = "/home")
. When the url pattern is /potato/*
and I navigate to localhost:8080/potato/home
my page works perfectly. But if I keep the same settings with the url pattern being /*
it gives me the 404.
Tried:
- Using a jsp servlet mapping to my pages directory, but it causes other mapping problems.
- adding
<mvc:default-servlet-handler/>
to spring-servlet, but this displays the source of my page. - Change url pattern to
<url-pattern>/</url-pattern>
but it causes other mapping problems.
Could anyone shed some light on my problem? I am editing as I try different possible solutions.