I had a similar problem when I added a dependency for CXF. I tried the above recommended way to exclude javax.servlet from this dependency, but it did not work, but the addition provided it. This may be another case for you, but worth a try.
<dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-bundle-jaxrs</artifactId> <version>2.2.9</version> <scope>provided</scope> </dependency>
If I answered your question, mark it like this.;)
source share