title: Error creating bean with name 'validator'
body: <p>I'm trying to create bean validation (I'm using tomcat server 7). When I added this piece of code</p>
  
  <pre><code>@Bean
  public Validator validator() {
      return new org.springframework.validation.beanvalidation.LocalValidatorFactoryBean();
  }
  </code></pre>
  
  <p>I got the error</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in Config.SpringConfig: Invocation of init method failed; nested exception is javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
  at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
  at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:535)
  at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
  at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
  at javax.servlet.GenericServlet.init(GenericServlet.java:160)
  at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1091)
  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3954)
  at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
  at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
  at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>I have looked over all the same issue and added needed dependencies as below:</p>
  
  <pre><code>&lt;dependency org="javax.el" name="el-api" rev="2.2.1-b04" conf="compile-&gt;default"/&gt;
      &lt;dependency org="org.apache.tomcat" name="tomcat-el-api" rev="8.5.14" conf="compile-&gt;default"/&gt;
      &lt;dependency org="org.apache.tomcat" name="tomcat-jasper-el" rev="8.5.14" conf="compile-&gt;default"/&gt;
      &lt;dependency org="javax.validation" name="validation-api" rev="2.0.0.Final" conf="compile-&gt;default"/&gt;
      &lt;dependency org="org.hibernate" name="hibernate-validator" rev="6.0.0.CR2" conf="compile-&gt;default"/&gt;
  </code></pre>
  
  <p>But the issue still occurs.</p>
  
  <p>Please help me,
  Thanks so much</p>