title: Unable to locate NamespaceHandler for namespace (http://www.springframework.org/schema/context)
body: <p>I am getting the following exception on a Spring project.Even I tried several solutions suggested in stackoverflow I could not resolve yet. Could you please help me ?</p>
  
  <p><strong>java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/context]
  Offending resource: class path resource [springDAO.xml]</strong></p>
  
  <p><strong>SpringDao.xml</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:jee="http://www.springframework.org/schema/jee"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:lang="http://www.springframework.org/schema/lang"
  xmlns:util="http://www.springframework.org/schema/util"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xmlns:aop="http://www.springframework.org/schema/aop"
  xmlns:amq="http://activemq.org/config/1.0"    
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
  http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
  http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
  http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
  http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
  http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
  http://activemq.org/config/1.0 http://activemq.apache.org/schema/core/activemq-core-5.0-SNAPSHOT.xsd"
  default-autowire="autodetect"&gt;
  
  &lt;!-- Database --&gt;
  &lt;bean id="ds" class="org.springframework.jndi.JndiObjectFactoryBean" autowire="no"&gt;
      &lt;property name="jndiName" value="java:comp/env/jdbc/datasource" /&gt;
  &lt;/bean&gt;   
  
  &lt;bean id="entityManagerFactory"
      class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
      &lt;property name="dataSource" ref="ds" /&gt;
      &lt;property name="persistenceUnitName" value="NewstrackPU"/&gt;
      &lt;property name="loadTimeWeaver"&gt;
          &lt;bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" /&gt;
      &lt;/property&gt;
      &lt;property name="jpaVendorAdapter"&gt;
          &lt;bean
              class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt;                
          &lt;/bean&gt;
      &lt;/property&gt;        
      &lt;property name="jpaDialect"&gt;
          &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" /&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt;
      &lt;property name="entityManagerFactory" ref="entityManagerFactory"/&gt;
  &lt;/bean&gt;
  &lt;!-- tx:annotation-driven configure transactions on any beans with @Transactional, and just after the JPA transaction manager is setup. --&gt;
  &lt;tx:annotation-driven transaction-manager="transactionManager"/&gt;
  &lt;context:component-scan base-package ="com.abc.newstrack.dao"/&gt;
  &lt;context:component-scan base-package ="com.abc.newstrack.service"/&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Spring Dependencies</strong> </p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring&lt;/artifactId&gt;
          &lt;version&gt;2.5.6.SEC03&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;2.5.6.SEC03&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;2.5.6.SEC03&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>