title: Configuration problems: Unable to locate Spring NamespaceHandler for XML schema namespace [http://java.sun.com/xml/ns/javaee]
body: <p>I'm trying to combine JUnit and Spring in a web project. Thanks to <a href="https://stackoverflow.com/questions/6546871/spring-junit-testing">this question</a>, I have succeeded in loading the spring config file into TestClass:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration
  public class TwitterServiceTest {
      @Resource
      IRepository repository;
  </code></pre>
  
  <p>But when the test runs, I got the following error:</p>
  
  <blockquote>
    <p>Caused by:
    org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
    Configuration problem: Unable to locate Spring NamespaceHandler for
    XML schema namespace [<a href="http://java.sun.com/xml/ns/javaee]" rel="nofollow noreferrer">http://java.sun.com/xml/ns/javaee]</a></p>
  </blockquote>
  
  <p>I guess that the problem might be that the library files are not in classpath. Currently I use <a href="http://www.eclipsetotale.com/tomcatPlugin.html" rel="nofollow noreferrer">Sysdeo Eclipse Tomcat plugin</a> <strong>DevLoader</strong> to do the loading job (load jar file from M2_REPO to the classpath).</p>
  
  <p>This project depends on many libraries. Is there any idea about how to fix this error?
  Any help would be greatly appreciated.</p>