2
我在Wildfly 10.1的EAR项目中有LinkageError
。 该项目包含一个ejb和一个web子项目。 Maven的依赖管理。 Gson包被添加到两个子项目的父项目和子项目中。Wildfly上的Java LinkageError通过maven构建
找不到第二个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