Project created with MAVEN (executable jar package), no problem during development with Eclipse, but the following error occurred through console Java-jar instruction: Exception in thread "main" Org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem:unable to locate Spring Namespacehandler for XML schema namespace [http://www.springframework.org/schema/tx]
Offending Resource:class path resource [Applicationcontext.xml]
Workaround:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation= "Org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
<mainClass>com.test.App</mainClass>
</transformer>
<transformer implementation= "Org.apache.maven.plugins.shade.resource.AppendingTransformer" >
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer implementation= "Org.apache.maven.plugins.shade.resource.AppendingTransformer" >
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer implementation= "Org.apache.maven.plugins.shade.resource.AppendingTransformer" >
<resource>META-INF/spring.tooling</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Error running executable jar Package