Thursday, November 15, 2018

Glassfish 4.1.1 Rest Missing Library

When trying to Implement Rest ApI using jersey on Glassfish 4.1.1 the following exception in

thrown:
 java.lang.ClassNotFoundException:        com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
not found by com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider


This is due to missing library jackson-module-jaxb-annotations-2.5.4.jar in

 C:\Program Files\glassfish-4.1.1\glassfish\modules

 Putting it there solves the problem.

 Thanks to this blog

 https://javaeeblog.wordpress.com/2016/06/21/jackson-glassfish-4-1-1/


No comments:

Post a Comment