'javax.validation.ValidationException Error

Error:

Caused by: javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead

I am using Spring boot 2.6.6 Version

Pom.xml:

<dependency>
                <groupId>javax.validation</groupId>
                <artifactId>validation-api</artifactId>
                <version>2.0.1.Final</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate.validator</groupId>
                <artifactId>hibernate-validator</artifactId>
                <version>6.0.17.Final</version>
            </dependency>
            <dependency>
                <groupId>javax.el</groupId>
                <artifactId>javax.el-api</artifactId>
                <version>3.0.0</version>
            </dependency>

I followed couple of posts, but couldn't help. It would be nice if any one suggests why the error is thrown & what could be fix for it. References I followed:

  1. Hibernate validation "Unable to initialize javax.el.ExpressionFactory" error
  2. javax.validation.ValidationException: HV000183: Unable to load 'javax.el.ExpressionFactory'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source