Unable to locate Spring NamespaceHandler for XML schema namespace Error in Terminal

On running, my code, on terminal, it gives this error

Exception in thread "main" java.lang.RuntimeException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/core]

Offending resource: class path resource [META-INF/test.xml]

my test.xml file is

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    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://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">

    <bean id="clientI"
        class="LI" />
    <bean id="clientL"
        class="LIn" />

            <ref bean="clientI" />
            <ref bean="clientL" />

However the same code works in eclipse. Does anyone know what the problem may be ?


This issue arose because cxf-bundle JAR was not present in my classpath

You can get it from here: http://mvnrepository.com/artifact/org.apache.cxf/cxf-bundle/2.7.6 (the latest version).

I guess you don't have, in your classpath, the JAR containing the cxf schema Try to add it to your classpath

Need Your Help

Removing sprite from scene when contact is made

ios swift sprite-kit collision-detection

So in my game i want to really make the life index more dynamic and not just an label that counts down. I've add three sprites on top of the screen like this:

Counting number of threads on windows server; counter path

c++ windows pdh

There was a similar thread about this here, and I tried to implement it myself. i.e. Trying to get the number of threads running in the server using c++ library.