我的 EAR 项目中有一个LinkageError
Wildfly 10.1。该项目包含一个 ejb 和一个 web 子项目。Maven的依赖管理。Gson 包被添加到父舞会和两个子项目的舞会中。
无法弄清楚第二个 gson 类的加载位置。关于如何解决这个问题的任何建议?
15:02:14,242 ERROR [io.undertow.request] (default task-2) UT005023:
Exception handling request to /Trigger-Server-web/event/quote:
java.lang.LinkageError: loader constraint violation: when resolving
interface method "de.company.triggerserver.ejb.EventProcessingLocal.processEvent(Ljava/lang/String;Lcom/google/gson/JsonObject;)Z" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, de/company/triggerserver/web/EventServlet, and the class loader (instance of org/jboss
/modules/ModuleClassLoader) for the method's defining class, de/company
/triggerserver/ejb/EventProcessingLocal, have different Class objects for the type com/google/gson/JsonObject used in the signature