|
I think I have found some clue. I have created very simple Spring project that exposes only HelloService, and is all in Java, and it works, then I created similar in Grails 1.1 and traced the difference: which is the number of handler adapters registered with the Dispatcher servlet. In case of straight Spring there are 4 of them, and the org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter is among them, and this handler handles the HessianExporter. Grails application has only 2 adapters and HttpRequestHandlerAdapter is NOT among them, that causes the cryptic message "Does your handler implement a supported interface like Controller?" Hope that will help fixing the bug. Solved: Grails 1.1 need to be advised on the availability of different handlers. import org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter beans = { httpRequestHandlerAdapter(HttpRequestHandlerAdapter){} } Excellent! Thanks for looking into this Konstantin - I'll try to get the fix out soon. Attached a patch to fix the hessian problem. |
||||||||||||||||||||||||||||||||||||||||||||
I think this has something to do with the version of Spring. Unfortunately, there doesn't seem to be an easy solution available
When I have the time, I'll take a look, but I can't yet.