• Register
0 votes
1.5k views

Problem :

I am getting below error while running my Jersey API in Tomcat 8.5.11
java.lang.illegalstateexception: injectionmanagerfactory not found.
6 5 3
6,930 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

9 7 4
38,600 points

Related questions

0 votes
1 answer 108 views
108 views
Problem : I am new to Servlet programing, while running my Servlet code i am getting bellow error error 500 javax servlet servletexception java lang illegalstateexception
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
2 answers 177 views
177 views
Problem : I am getting bellow memory error java.lang.outofmemoryerror requested array size exceeds vm limit
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 454 views
454 views
Problem : Using new android studio with new 3.0.0 Gradle pluging. When building some warning occurred as follows: registerResGeneratingTask is deprecated, useregisterGeneratedFolders(FileCollection)
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 1.1K views
1.1K views
Problem : I have already placed the JSTL JAR file in the WEB-INF/lib directory. But still, the JSP can't resolve the taglib. I get the below error: Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 31 views
31 views
Problem : Now a days I am learning Android Programming. I am facing below error message while trying to implement the logout functionality for the Google Sign-In for the Android: &ldquo;Caused by: java.lang.IllegalStateException: GoogleApiClient is not ... .getInstance().getClient(); Auth.GoogleSignInApi.signOut(myGoogleApiClient); } I am struggling to find solution on it since yesterday.
asked Feb 27 mphil 2.3k points