Hello I have some troubles with a simple webapp in eclipse/tomcat.
I report here my files:
WEB.XML
TESTWEB-SERVLET.XMLCode:<display-name>TestWeb</display-name> <servlet> <servlet-name>testweb</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value></param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>testweb</servlet-name> <url-pattern>*.ctrl</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list>
when i start the server, everything works, but when i request test.ctrl the server console writes:Code:<beans> <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/test.ctrl">TestController</prop> </props> </property> </bean> <bean id = "TestController" class="TestController" /> </beans>
- No mapping for [/TestWeb/test.ctrl] in DispatcherServlet with name 'testweb'
Why?
thanks


Reply With Quote