Unable to locate Spring NamespaceHandler for XML schema namespace Util

时间:2017-04-10 02:52:48

标签: java spring maven

My pom.xml

   <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>4.1.0.RELEASE</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>4.1.4.RELEASE</version>
    </dependency>

I don't get this error when I run Abc.java class in eclipse. It is working perfectly fine. But when I am trying to run from command line I am getting following error. Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]. The command I am using to run my class is: java -cp xyz-api-0.0.1-SNAPSHOT.jar <package name of Abc.java>.Abc

0 个答案:

没有答案