问题:Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "com.google.common.collect.Lists.transform(Ljava/util/List;Lcom/google/common/base/Function;)Ljava/util/List;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, com/dangdang/ddframe/job/context/TaskContext$MetaInfo, and the class loader (instance of com/oracle/classloader/weblogic/LaunchClassLoader) for the method's defining class, com/google/common/collect/Lists, have different Class objects for the type com/google/common/base/Function used in the signature
原因:tomcat上能运行的项目丢到weblogic上就出现了这个错误,原因就是类加载的时候冲突了。解决办法就是在weblogic.xml中配置它的加载方式
解决办法:
<prefer-web-inf-classes>false</prefer-web-inf-classes>