It's not a secret anymore!*
The moose likes Spring and the fly likes Spring MVC Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC Problem" Watch "Spring MVC Problem" New topic
Author

Spring MVC Problem

Rajith Gamage
Greenhorn

Joined: Jun 17, 2010
Posts: 19
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

Joined: Apr 25, 2010
Posts: 537



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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring MVC Problem