Hi Developers!
I am using Hibernate Validator for my project, and when I want to customize the constraint violation message using an EL expression like
Code:
@Past(message = "${pastDateMessage}")
private Calendar aPastDate;
Then I receive a java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl.
I am using Maven to get the dependencies for the Hibernate Validator.
Code:
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>javax.el</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>2.2</version>
</dependency>
Can you help me please to solve this issue?
Thank you for your time and understanding!
Best Regards,
YouCan