Why spring warn message is“ org.springframework.web.servlet.PageNotFound ”?

It looks like you are missing /WEB-INF/views/test.jsp. Is that true?

Up vote 0 down vote favorite share g+ share fb share tw.

I trying spring 3 mvc this package is org.spring. Test and code is @Controller @RequestMapping("/welcome") public class WelcomeController { private Logger logger = org. Slf4j.LoggerFactory.

GetLogger(WelcomeController. Class); @RequestMapping(method = RequestMethod. GET) public void welcome() { logger.

Info("Welcome! "); } @RequestMapping("test1") public void test1() { logger. Info("test1!

"); } @RequestMapping("test2") public void test2() { logger. Info("test2! "); } } web.

Xml is: Spring MVC Dispatcher Servlet org.springframework.web.servlet. DispatcherServlet contextConfigLocation /WEB-INF/spring/*. Xml 1 Spring MVC Dispatcher Servlet /* last mvc.

Xml is When I use "mvn jetty:run" command and write to http://localhost:8080/springdemo/welcome is "HTTP ERROR 404 Problem accessing /springdemo/WEB-INF/views/welcome.jsp. Reason: NOT_FOUND" Console message is : INFO : org.spring.test. WelcomeController - Welcome!

WARN : org.springframework.web.servlet. PageNotFound - No mapping found for HTTP request with URI /springdemo/WEB-INF/views/welcome. Jsp in DispatcherServlet with name 'Spring MVC Dispatcher Servlet' Why?

Java spring spring-mvc link|improve this question edited Jul 7 '10 at 10:29skaffman114k8135227 asked Jul 7 '10 at 6:28EdwardLau206613 91% accept rate.

See stackoverflow.com/questions/2977446/… – axtavt Jul 7 '10 at 10:28.

It looks like you are missing /WEB-INF/views/test.jsp. Is that true? You are requesting /test URI, which is not mapped to your controller class (which is mapped to /welcome, I think).

Spring uses InternalResourceViewResolver to serve your request. It takes prefix + "test" + suffix. That is how you end up with /WEB-INF/views/test.jsp.

Make sure you have that JSP or change your controller mappings. Update: Ok, you changed the question. But do you have /springdemo/WEB-INF/views/welcome.

Jsp?

This demo I copy to SpringPlugin(I create a new Springtemplate is SpringMvcProject) . – EdwardLau Jul 7 '10 at 7:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions