I'm working on an application where HibernateValidator does not work as 
excpected when running on Resin 4.0.7 but just fine when running on jetty 
6.1.22 with "mvn jetty:run".

We have annotated our domainobjects which we try to validate like f.x.

    private String title;

In our submit method we are looking at the BindingResult to see if we have any 
validation errors:

   @RequestMapping(value = "/edit.html", method = RequestMethod.POST)
    public ModelAndView submit(@ModelAttribute("commandObject") @Valid final T 
            final BindingResult result, final HttpServletRequest request) {

      if (result.hasErrors()) {
        // handle validation errors
      } else {
        // save and be happy :)

If we try to submit a form where some of the properties with @NotEmpty 
annotations is empty the method result.hasErrors() returnes true (as expected) 
when running on jetty but not when running on Resin. Strange?

We are using HibernateValidator 4.0.2, Spring 3.0.2, Hibernate 3.5.3 (not JPA) 
and Resin 4.0.7.

I have a small demo project which reproduce this issue which can be found on 

To run just use "mvn jetty:run" and it is available at 

TIA for any what so ever hints or ideas on how to get closer to a solution on 
this issue! :)

-Kaj :)

resin-interest mailing list

Reply via email to