• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
31 views

Problem :

I am getting below error while running my Jersey API in Tomcat 8.5.11
java.lang.illegalstateexception: injectionmanagerfactory not found.
by (6.9k points)  

1 Answer

0 votes

Solution :

I had faced this issue before and i followed bellow approch to fix it

Please use the bellow dependencies:

1. Maven

<dependency>
    <groupId>org.glassfish.jersey.core</groupId>
    <artifactId>jersey-common</artifactId>
    <version>2.26</version>
</dependency>

<dependency>
  <groupId>org.glassfish.jersey.inject</groupId>
    <artifactId>jersey-hk2</artifactId>
    <version>2.26</version>
</dependency>

2. Gradle

compile 'org.glassfish.jersey.core:jersey-common:2.26'
compile 'org.glassfish.jersey.inject:jersey-hk2:2.26'

Further Readings :

https://github.com/jersey/jersey/issues/3588

by (20.3k points)  
...