title: How to fix "cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'."
body: <p>I'm receiving the <em>cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'.</em> error at the <code>&lt;tx:annotation-driven transaction-manager="myTransactionManager" /&gt;</code> line on my xml configuration file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans  xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:context="http://www.springframework.org/schema/context"           
          xmlns:mvc="http://www.springframework.org/schema/mvc"
          xmlns:tx="http://springframework.org/schema/tx"  
          xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
          http://www.springframework.org/schema/mvc 
          http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
          http://www.springframework.org/schema/tx 
          http://www.springframework.org/schema/tx/spring-tx.xsd
          http://www.springframework.org/schema/context 
          http://www.springframework.org/schema/context/spring-context-3.2.xsd"&gt;
  
          &lt;!--Dispatcher controller--&gt;
          &lt;context:component-scan base-package="com.ps.springmvc.psbankapp"&gt;&lt;/context:component-scan&gt;
  
          &lt;mvc:annotation-driven&gt;&lt;/mvc:annotation-driven&gt;
  
          &lt;bean   id="viewResolver"
                  class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
                  &lt;property name="prefix" value="/WEB-INF/views/"/&gt;
                  &lt;property name="suffix" value=".jsp"/&gt;
          &lt;/bean&gt;
          &lt;!--Dispatcher controller--&gt;
  
          &lt;!--Uniform labels. Tambien scannea para usar las clases añadidas .jar de Hibernate--&gt;
          &lt;bean id="messageSource"
          class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
              &lt;property name="basenames"&gt;
                  &lt;list&gt;
                      &lt;value&gt;
                          WEB-INF/account
                      &lt;/value&gt;
                  &lt;/list&gt;
              &lt;/property&gt;
              &lt;property name="defaultEncoding" value="UTF-8"/&gt;
          &lt;/bean&gt;
          &lt;!--Uniform labels--&gt;
  
          &lt;bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
              destroy-method="close"&gt;
              &lt;property name="driverClass" value="com.mysql.jdbc.Driver"/&gt;
              &lt;property name="jdbcUrl" 
                  value="jdbc:mysql://localhost:3306/psbankdb?useSSL=false" /&gt;
              &lt;property name="user" value="root" /&gt;
              &lt;property name="password" value="root" /&gt;
          &lt;/bean&gt;
  
          &lt;bean id="sessionFactory" 
              class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"&gt;
              &lt;property name="datasource" ref="datasource"/&gt;
              &lt;property name="packagesToScan" value="com.ps.springmvc.psbankapp" /&gt;
              &lt;property name="hibernateProperties"&gt;
                  &lt;props&gt; 
                      &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/prop&gt;
                      &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
                  &lt;/props&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
  
          &lt;bean id="myTransactionManager" 
              class="org.springframework.orm.hibernate5.HibernateTransactionManager"&gt;
              &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
          &lt;/bean&gt;
  
          &lt;tx:annotation-driven transaction-manager="myTransactionManager" /&gt;
  
  &lt;/beans&gt;
  
  </code></pre>