Hi Developers!
I am using Hibernate Validator for my project, and when I want to customize the message for a constraint violation using EL expression like:
Code:
@Past(message = "${pastDateMessage}")
private Calendar aPastDate;
Then I recieve java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
I am using Maven for building the project and get the external dependencies
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