aspose file tools*
The moose likes Spring and the fly likes Issue with adding spring 3.0 to existing jsf 1.1 project 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 "Issue with adding spring 3.0 to existing jsf 1.1 project" Watch "Issue with adding spring 3.0 to existing jsf 1.1 project" New topic
Author

Issue with adding spring 3.0 to existing jsf 1.1 project

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
We have any existing jsf 1.1 project, and i am trying to add spring 3.0 to it,
I am getting 404 error when trying to go to any controller, so i am not sure if it is scanning any controller or what is the issue, here is my set up

in web.xml i have added


Then my servlet-context.xml file looks like below



any my test controller class is as below


The URL is am trying is as below


I am expecting it redirect o home.jsp in folder /WebContent/spring/home.jsp

but i am getting 404 error for the URL above, what am i missing


A$HI$H
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
Are you getting any exception on console or log if yes what that please show here.
ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
Hi
I got that working, i changed the mapping in web.xml from



To

 
Don't get me started about those stupid light bulbs.
 
subject: Issue with adding spring 3.0 to existing jsf 1.1 project
 
Similar Threads
REST web service return both XML or JSON
STS springMVC project how to run on tomcat application
javax.servlet.ServletException: No adapter for handler
javax.servlet.ServletException: Could not resolve view with name home-- apache Velocity, spring
Issue with getting Message from properties file in Controller, but works in JSP