Hi Mark,
Yes, I'm sure the correct method is being called. The "log.info("getRatesInfo() called");" line is definitely being executed and I'm seeing it in the server logs.
Also, like I said if I hit the URL in a browser, the browser prompts me to download "application/json" data (it's in the latter half of my original post).
If it matters, I've tried hosting the webapp on
Tomcat 6 and Weblogic 9.2 with the same results.
Thanks a lot for the help guys.
Edit: Yes, I do have the jackson-all-1.7.6.jar in my classpath. I'll try setting @ResponseStatus and report back.
Edit 2:
My controller method now looks like this:
But the result is the same. Sorry I should have mentioned that Firebug was already reporting http status as OK even before I added this annotation.
Here are the server logs:
15484 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO RatesInfoController - getRatesInfo() called
15594 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter - Written [simulator.rates.RatesInfo@62a404] as "application/json" using [org.springframework.http.converter.json.MappingJacksonHttpMessageConverter@1fe30f8]
15594 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'ratesSim': assuming HandlerAdapter completed request handling
15594 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.web.servlet.DispatcherServlet - Cleared thread-bound request context: Http Request: /RatesSimulator/rates/
15594 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.web.servlet.DispatcherServlet - Successfully completed request
15594 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.web.context.support.XmlWebApplicationContext - Publishing event in WebApplicationContext for namespace 'ratesSim-servlet': ServletRequestHandledEvent: url=[/RatesSimulator/rates/]; client=[127.0.0.1]; method=[GET]; servlet=[ratesSim]; session=[null]; user=[null]; time=[172ms]; status=[OK]