On Sat, Dec 14, 2019 at 1:56 PM Ben Davis <[email protected]> wrote:

> I was finally able to figure this out. It turns out my pom.xml was had the
> wrong version of Jersey in the dependencies. It should be:
>
>     <!-- Jersey - JAX-RS Implementation -->
>>     <dependency>
>>       <groupId>javax.ws.rs</groupId>
>>       <artifactId>jsr311-api</artifactId>
>>       <version>1.1.1</version>
>>       <scope>provided</scope>
>>     </dependency>
>
>
Thanks for posting back with the solution - sorry we weren't able to help
you track that down more quickly!  Aside from being the wrong version, one
thing to look out for with Maven dependencies is pulling in multiple
versions of the same module - which may be what was happening to you.  You
were pulling a particular version, while other components are pulling a
different version.  You can use the "<scope>provided</scope>" and/or
"<exclusions></exclusions>" block to keep that from happening and make sure
only one version is being pulled in.

-Nick

Reply via email to