Handling errors in a REST way is seemingly simple enough: upon requesting a resource, when an error occurs, a proper status code and a body that contains a parseable message and using the content-type of the request should be returned. The default error pages in Tomcat are ugly. Not only they expose too much of… Continue reading RESTful error handling with Tomcat and SpringMVC 3.x
Category: spring
Using Spring 3.0 MVC for RESTful web services (rebuttal)
Update Mar.04 Thanks to @ewolff some of the points described below are now official feature requests. One (SPR-6928) is actually scheduled in Spring 3.1 (cool!). I’ve updated the post and added all open tickets. Please vote! This post is somewhat a response to InfoQ’s Comparison of Spring MVC and JAX-RS. Recently I have completed a… Continue reading Using Spring 3.0 MVC for RESTful web services (rebuttal)
Upgrading to Spring 3.0.0.M3 and Spring Security 3.0.0.M1
A short two months back I posted an article describing how to upgrade to Spring 3.0 M2. Spring folks are releasing at breakneck speed and so I got busy again upgrading spincloud.com to Spring 3.0 M3 released at the beginning of May. Just yesterday (June 3rd) the team released Spring Security 3.0 M1 and I… Continue reading Upgrading to Spring 3.0.0.M3 and Spring Security 3.0.0.M1
Evaluating EclipseLink 1.1
As I’m using the ubiquitous Hibernate 3.3 as the JPA 1.0 provider for Spincloud, I decided to try out another one. I had tried OpenJPA (spawned from Kodo JDO) when they only supported build-time bytecode enhancement and it was a pain to make it work. It worked all right but boy what a pain. There’s… Continue reading Evaluating EclipseLink 1.1
Upgrading to Spring 3.0
In the spirit of beta I’m upgrading spincloud.com to Spring 3.0. I’m using version 2.5.6 currently but it’s missing REST support and I had to use Carbonfive’s REST library which worked like a charm. Now it’s time to get back under Spring’s fold and use their built-in REST support. Spring 3 opens the door to… Continue reading Upgrading to Spring 3.0