Java application built using maven working in one machine but failing withother machine having same configuration.

Java - jdk1.8.0_331 Weblogic - 12.2.1.4.0 Maven - 3.6.0

When ear is built in Machine1 causing the below error and same code built in another machine deployment is successful and web application is up and running. <Servlet: "Jersey" failed to preload on startup in Web application: "/api/". java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.introspect.AnnotatedMember.getType(Lcom/fasterxml/jackson/databind/type/TypeBindings;)Lcom/fasterxml/jackson/databind/JavaType;

Compared both the ear structures and find no differences. Seems that the issue is with classloading, but not able to find the root cause of the issue.

Tried updating the package in weblogic-application.xml but issue not resolved

<prefer-application-packages>
<package-name>com.fasterxml.jackson.*</package-name>
 </prefer-application-packages>
0

There are 0 best solutions below