Hi,
I'm a newbie when it comes to Spring MVC etc. I have web.xml set to a dispatcher servlet which loads up ok. I keep getting this error though -
Code:WARN [org.springframework.web.servlet.PageNotFound] - No mapping found for HTTP request with URI [/accounts/index.htm] in DispatcherServlet with name 'dispatcher'
my web.xml file handles the mapping like this.
my dispatcher-servlet is set up as follows:Code:<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:/spring/dispatcher-servlet.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Map the DispatcherServlet to only intercept RPC requests --> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
As you can see it's a standard config, I don't know what's wrong. I'm running it in eclipse with a Tomcat server.Code:<!-- Maps the request through to a concrete controller instance --> <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/index.htm">indexController</prop> </props> </property> </bean> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" p:prefix="/WEB-INF/jsp/" p:suffix=".jsp" /> <bean name="indexController" class="org.springframework.web.servlet.mvc.ParameterizableViewController" p:viewName="index" />
Any help would be greatly appreciated.


Reply With Quote
