This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Spring and the fly likes SpringMVC Redirect Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "SpringMVC Redirect Error" Watch "SpringMVC Redirect Error" New topic
Author

SpringMVC Redirect Error

Alan Faulkner
Greenhorn

Joined: Feb 02, 2011
Posts: 4
Hi all,

Rebuilding an old SpringMVC app of mine, this time using Hibernate and annotation-based configuration. I've set up a controller class with the following URL mappings:



Now, I'm new to annotation based controllers, so the following is the line I believe should be included in the applicationContext in order for the container to detect annotated controllers:



Right, so here's the problem. When I try and access the URL from firefox, it returns an error page stating that "The page isn't redirecting properly".

I tried increasing the redirect limit on firefox to no avail. I also used the 'LiveHTTPHeaders' plugin to check out the redirect headers:

HTTP/1.1 302 Moved Temporarily

Server: Apache-Coyote/1.1

Location: http://localhost:8080/spring-FlyPOST v5.0/event

Content-Type: text/html

Transfer-Encoding: chunked

Date: Thu, 19 May 2011 19:11:17 GMT


From the full readout, it would seem that every redirect points to the same URL that I enter in the first place. Anyone have any idea whats goin on here?





 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: SpringMVC Redirect Error
 
Similar Threads
@Responsebody for HTTP msg and a View to show the HTTP response msg
Error Reading data from database
Accessing list from multiple jsp pages (Simple question)
Not able to Validate form using JSR-303 validation implementation in Spring MVC
Simple navigation rule