Change EL impl dependency scope from runtime to provided

Description

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 [1], change the version of hibernate-validator in the POM to 5.0.0.Beta1 and run on a servlet 2.6 container.

[1] https://github.com/SpringSource/spring-petclinic

Environment

None

Activity

Show:
Hardy Ferentschik
May 2, 2013, 8:21 AM

Great, thanks for the heads up

Michael Isvy
May 3, 2013, 11:58 AM

Hi,
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:
https://github.com/SpringSource/spring-petclinic/tree/hibernate-validator-5.0.1

Cheers,
Michael.

Emmanuel Bernard
May 3, 2013, 1:15 PM

let's create a dedicated issue. It's not related to the maven scope anymore. Also exceptions would be useful.

Hardy Ferentschik
May 3, 2013, 2:12 PM

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.

Michael Isvy
May 4, 2013, 2:00 AM

See

Assignee

Hardy Ferentschik

Reporter

Michael Isvy

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure