Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot access javax.ws.rs.ext.MessageBodyReader while using JacksonJsonProvider.setMapper

Im facing cannot access javax.ws.rs.ext.MessageBodyReader while upgrading to spring 6. Im using glassfish jersey 3.1.0 for REST services in spring 6 application and com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider 2.14.1.

Im facing this compilation error while calling JacksonJsonProvider.setMapper()

i cant able to figure out how to solve this issue.

like image 467
Suhail Ahmed Avatar asked Jun 09 '26 22:06

Suhail Ahmed


1 Answers

I have solved this issue by replacing

<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>

with

<groupId>com.fasterxml.jackson.jakarta.rs</groupId>
<artifactId>jackson-jakarta-rs-json-provider</artifactId>
like image 175
Suhail Ahmed Avatar answered Jun 11 '26 10:06

Suhail Ahmed