In my case, it was due to a conflict of dependents, but it was difficult to find out which bank is the cause of the conflict.
So, to check for conflict, pom.xml has a Dependency Hierarchy tab in eclipse. In the Resolved Dependency section, check if there are two banks with the same name. If found, then exclude one of them from the parent dependency.

In my case, it was a jsp-api jar, by clicking the jsp-api jar, I found that the parent dependency is activemq-core , so I excluded the jsp-api jar from dependemq-core and it works fine.
<dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-core</artifactId> <version>5.6.0</version> <exclusions> <exclusion> <groupId>org.mortbay.jetty</groupId> <artifactId>jsp-2.1</artifactId> </exclusion> <exclusion> <groupId>org.mortbay.jetty</groupId> <artifactId>jsp-api-2.1</artifactId> </exclusion> </exclusions> </dependency>
source share