This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 507



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.


Regards, Prasad
SCJP 5 (93%)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    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
 
Similar Threads
XML error
SPring MVC
Spring w/ Hibernate
Spring 3 and Hibernate
Unable to connect to database