This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC Problem

 
Rajith Gamage
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm new to Spring So I'm develop some Spring MVC application. But I got 404 error. Here is the code.

HelloController.java



hello.jsp


web.xml



springapp-servlet.xml


ref : http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html

When I'm going to run on tomcat server I got the following Exception


What is the wrong with this code ? Please give a help to run this.
 
Prasad Krishnegowda
Ranch Hand
Posts: 670
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This exception clearly tells you that, spring can't find the controller class.. Are you sure, your controller class is compiled..
Try rebuilding the application.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just an added note. If you are learning Spring and Spring MVC here, I recommend using the latest version of Spring, which deprecates the Controller interfaces for the better @MVC approach.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic