• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic