title: unable to locate Spring NamespaceHandler error
body: <p>I have been having this error for nearly a week now and im just about ready to give in.
  I have used Maven2 to make the BIG jar file. When I run the jar file using:</p>
  
  <pre><code> java -jar someJar.jar
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code> ERROR: [27/55/13 10:55] Launcher: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
   Offending resource: class path resource [JavaProjectApplicationContext.xml]
  </code></pre>
  
  <p>JavaProjectApplicationContext.xml is as follows: </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:jee="http://www.springframework.org/schema/jee"
     xsi:schemaLocation="http://www.springframework.org/schema/beans 
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://www.springframework.org/schema/context
         http://www.springframework.org/schema/context/spring-context-3.0.xsd
         http://www.springframework.org/schema/jee
         http://www.springframework.org/schema/jee/spring-jee-3.0.xsd"&gt; 
  
  &lt;bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
  &lt;property name="location"&gt;&lt;value&gt;deployment.properties&lt;/value&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="LexEditorDataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt;
  &lt;property name="driverClassName"&gt;&lt;value&gt;${hibernate.jdbc_driver}&lt;/value&gt;&lt;/property&gt;
  &lt;property name="username"&gt;&lt;value&gt;${hibernate.username}&lt;/value&gt;&lt;/property&gt;
  &lt;property name="password"&gt;&lt;value&gt;${hibernate.password}&lt;/value&gt;&lt;/property&gt;
  &lt;property name="url"&gt;&lt;value&gt;${hibernate.url}&lt;/value&gt;&lt;/property&gt;
  &lt;property name="defaultAutoCommit"&gt;&lt;value&gt;${hibernate.default_auto_commit}&lt;/value&gt;   &lt;/property&gt;
  &lt;property name="maxActive"&gt;&lt;value&gt;20&lt;/value&gt;&lt;/property&gt;
  &lt;property name="maxIdle"&gt;&lt;value&gt;3&lt;/value&gt;&lt;/property&gt;
   &lt;property name="testOnBorrow"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt;
  &lt;property name="testOnReturn"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt;
  &lt;property name="testWhileIdle"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
   &lt;context:component-scan base-package="com.k_int.bank.plugin"&gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Service"/&gt;
   &lt;/context:component-scan&gt;
  
    &lt;bean id="ThesSessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"&gt;
     &lt;property name="dataSource"&gt;&lt;ref local="LexEditorDataSource"/&gt;&lt;/property&gt;
    &lt;property name="configurationClass"&gt;  &lt;value&gt;org.hibernate.cfg.AnnotationConfiguration&lt;/value&gt;&lt;/property&gt; 
     &lt;property name="packagesToScan"&gt;
          &lt;list&gt;
              &lt;value&gt;com.bank.kernel.datamodel&lt;/value&gt;              
          &lt;/list&gt;
  &lt;/property&gt;
  &lt;property name="annotatedClasses"&gt;
    &lt;list&gt;
      &lt;!-- identity service --&gt;
      &lt;value&gt;com.svc.identity.datamodel.PartyHDO&lt;/value&gt;
      &lt;value&gt;com.svc.identity.datamodel.RegisteredUserHDO&lt;/value&gt;
      &lt;value&gt;com.svc.identity.datamodel.AuthenticationDetailsHDO&lt;/value&gt;
      &lt;value&gt;com.svc.identity.datamodel.GrantHDO&lt;/value&gt;
      &lt;value&gt;com.svc.identity.datamodel.PermissionHDO&lt;/value&gt;
      &lt;value&gt;com.svc.identity.datamodel.RegisteredOrganisationHDO&lt;/value&gt;
      &lt;value&gt;com.svc.identity.datamodel.RoleHDO&lt;/value&gt;
     &lt;/list&gt;
  &lt;/property&gt;
    &lt;property name="hibernateProperties"&gt;
     &lt;props&gt;
      &lt;prop key="hibernate.dialect"&gt;${hibernate.dialect}&lt;/prop&gt;
      &lt;prop key="hibernate.hbm2ddl.auto"&gt;${hibernate.hbm2ddl.auto}&lt;/prop&gt;
      &lt;prop key="hibernate.show_sql"&gt;false&lt;/prop&gt;       
    &lt;/props&gt;
    &lt;/property&gt;
   &lt;/bean&gt;
    &lt;bean id="IndexService" class="com.k_int.bank.index.solr_impl.SOLRIndexService" init-method="init"&gt;
    &lt;property name="indexDirectory"&gt;&lt;value&gt;${com.bank.index_dir}&lt;/value&gt;&lt;/property&gt;
    &lt;property name="indexPropertyFile"&gt;&lt;value&gt;solr.properties&lt;/value&gt;&lt;/property&gt;
    &lt;/bean&gt;
  </code></pre>
  
  <p></p>
  
  <p>
      
    </p>
  
  <p>
      
    </p>
  
  <p>
      
      
    </p>
  
  <p>
      
      
      
     </p>
  
  <p>
      
    </p>
  
  <p>
    <br>
    <br>
    
    
    
    
    
    
    
    </p>
  
  <p></p>
  
  <p>Things I have tried so far.</p>
  
  <p>built the project in 3 different ways (2 IDE's and command line)
  removed any jar dependancy clashes (I had spring-2.5.6.jar and spring-context-3.0.5.RELEASE.jar, So i removed spring-2.5.6.jar)</p>
  
  <p>changed  <a href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</a> to  <a href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">http://www.springframework.org/schema/beans/spring-beans-3.0.xsd</a>.</p>
  
  <p>None of these changes have removed the error.</p>
  
  <p>In the car file exists in </p>
  
  <pre><code> someJar.jar/org/springframework/context/config/ContextNameSpaceHandler.class
  </code></pre>
  
  <p>Has anyone got any ideas at all.</p>