• Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic mvc project using Spring 4 without XML - resource not found error  RSS feed

 
Anil Raj Vadangi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am learning web app development, and I am trying to implement a basic mvc project from the Spring in Action text book (4th edition).

My project looks like this - <project.png>

I have created all config using Java code instead of XML: 1. webapp initializer created by extending AbstractAnnotationConfigDispatcherServletInitializer 2. Created a controller by annotating the class with @Controller 3. Defined the view resolver in a class annotated with @EnableWebMvc

The project has only one view - home.jsp, mapped to "/".

I have configured Tomcat 7.0 as targeted runtime for the project.

However, when I run the app (either in eclipse, or by exporting the project to war and deploying in tomcat), I am getting the following exception: <resourcenotfound.png>


Can someone please help me understand why I am getting this error? Link to the war file (includes source) - https://www.dropbox.com/s/ssn3g92s63n3c7h/Spittr.war?dl=0



Thanks in advance!
project.png
[Thumbnail for project.png]
this is what my project looks like
resourcenotfound.png
[Thumbnail for resourcenotfound.png]
this is the error i am getting
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!