I have an application that can run on both Tomcat 6 and Tomcat 7.
I have noticed that bean validation 1.1 only works with Tomcat 7.
I was not sure if it is a known limitation or a bug so I've discussed it with Emmanuel Bernard who suggested that I open an issue so you guys can investigate.
I've tried out with a few versions of Hibernate Validator and I understand it stops working from version 5.0.0.Beta1.
If you would like to reproduce the issue, it's pretty easy: just clone Spring-Petclinic , change the version of hibernate-validator in the POM to 5.0.0.Beta1 and run on a servlet 2.6 container.
Great, thanks for the heads up
well I'm afraid I just found another bug when using HV 5.0.1.Final and Tomcat 6.
Before the scope of EL dependencies was changed to "provided" I couldn't even display one of the JSPs. So when that one was fixed, I was a bit too fast on saying that everything is ok.
Yesterday I did some more work on some of the forms and saw that I can't validate them on Tomcat 6. It really seems like an EL incompatibility.
I've created a branch here if you'd like to have a look:
let's create a dedicated issue. It's not related to the maven scope anymore. Also exceptions would be useful.
Right, if you could create a new issue that would be great. If you could provide a summary of the problem, including stacktrace and potentially the log output that would be great.