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