title: NoSuchMethodError: org.thymeleaf.standard.StandardDialect with spring 4 and thymeleaf 3
body: <p>Hi i'm using spring 4 with thymeleaf 3 for my project. I have changed everything according to their doc. When i run the application on wildfly 10 , it is showing some errors..</p>
  
  <pre><code>21:35:15,447 WARN  [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 9) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'templateEngine' defined in class path resource [spring/ViewConfig.xml]: Instantiation of bean failed; nested exception is java.lang.NoSuchMethodError: org.thymeleaf.standard.StandardDialect.&lt;init&gt;(Ljava/lang/String;Ljava/lang/String;I)V
  21:35:15,458 ERROR [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 9) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'templateEngine' defined in class path resource [spring/ViewConfig.xml]: Instantiation of bean failed; nested exception is java.lang.NoSuchMethodError: org.thymeleaf.standard.StandardDialect.&lt;init&gt;(Ljava/lang/String;Ljava/lang/String;I)V
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)  
  </code></pre>
  
  <p>Themeleaf3 dependency</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf&lt;/artifactId&gt;
          &lt;version&gt;3.0.1.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf-spring4&lt;/artifactId&gt;
          &lt;version&gt;3.0.1.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;nz.net.ultraq.web.thymeleaf&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf-layout-dialect&lt;/artifactId&gt;
          &lt;version&gt;1.0.6&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Template Resolver Configuration</p>
  
  <pre><code>&lt;bean id="templateResolver"
          class="org.thymeleaf.templateresolver.ServletContextTemplateResolver"&gt;
          &lt;property name="prefix" value="/WEB-INF/views/" /&gt;
          &lt;property name="suffix" value=".html" /&gt;
          &lt;property name="templateMode" value="HTML5" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine"&gt;
          &lt;property name="templateResolver" ref="templateResolver" /&gt;
          &lt;property name="dialects"&gt;
              &lt;set&gt;
                  &lt;bean class="org.thymeleaf.standard.dialect.StandardDialect" /&gt;
                  &lt;bean class="nz.net.ultraq.web.thymeleaf.LayoutDialect" /&gt;
              &lt;/set&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver"&gt;
          &lt;property name="templateEngine" ref="templateEngine" /&gt;
      &lt;/bean&gt;
  </code></pre>