title: NoClassDefFoundError with VelocityEngineFactory when spring + velocity
body: <pre><code>spring 4.1.6.RELEASE maven
  error:
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.geekworld.service.AccountService org.geekworld.controller.AccountController.accountService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.velocity.VelocityConfigurer] for bean with name 'velocityConfig' defined in class path resource [spring-servlet.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/velocity/VelocityEngineFactory
  </code></pre>
  
  <p>xml:</p>
  
  <pre><code>&lt;bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer"&gt;
          &lt;property name="resourceLoaderPath" value="/WEB-INF"/&gt;
          &lt;property name="configLocation" value="classpath:velocity.properties"/&gt;
      &lt;/bean&gt;
      &lt;bean id="viewResolver" class="org.springframework.web.servlet.view.velocity.VelocityViewResolver"&gt;
          &lt;property name="suffix" value=".vm"/&gt;
          &lt;property name="prefix" value="/"/&gt;
          &lt;property name="exposeSpringMacroHelpers" value="true"/&gt;
          &lt;property name="requestContextAttribute" value="content"/&gt;
          &lt;property name="exposeRequestAttributes" value="true"/&gt;
          &lt;property name="exposeSessionAttributes" value="true"/&gt;
          &lt;property name="contentType" value="text/html;charset=UTF-8"/&gt;
          &lt;property name="dateToolAttribute" value="dateTool"/&gt;
          &lt;!-- velocity toolbox --&gt;
          &lt;property name="toolboxConfigLocation" value="/WEB-INF/toolbox.xml"/&gt;
      &lt;/bean&gt;
  </code></pre>