1

我正在尝试将 opencms 模块插件 v 0.0.9( http://sourceforge.net/projects/opencmsmoddev/files/ ) 与基于 eclipse v. 3.7.2 的 spring 源工具一起使用

opencms 模块似乎正在工作,因为我可以在 eclipse 首选项中配置它。但是当我尝试创建新模块时,出现以下异常:

    java.lang.LinkageError: loader constraint violation: when resolving method "info.rsdev.eclipse.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V" the class loader (instance of info/rsdev/eclipse/opencms/module/developer/loader/OpenCmsClassLoader) of the current class, org/opencms/main/Communicator, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper, have different Class objects for the type org/opencms/main/CmsSystemInfo used in the signature
java.lang.reflect.InvocationTargetException
  java.lang.LinkageError: loader constraint violation: when resolving method "info.rsdev.eclipse.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V" the class loader (instance of info/rsdev/eclipse/opencms/module/developer/loader/OpenCmsClassLoader) of the current class, org/opencms/main/Communicator, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper, have different Class objects for the type org/opencms/main/CmsSystemInfo used in the signature
  loader constraint violation: when resolving method "info.rsdev.eclipse.opencms.module.developer.compatibility.CmsCompatibilityHelper.initCmsSystemInfo(Lorg/opencms/main/CmsSystemInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V" the class loader (instance of info/rsdev/eclipse/opencms/module/developer/loader/OpenCmsClassLoader) of the current class, org/opencms/main/Communicator, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper, have different Class objects for the type org/opencms/main/CmsSystemInfo used in the signature

似乎 eclipse osgi 无法为 info/rsdev/eclipse/opencms/module/developer/compatibility/CmsCompatibilityHelper 找到合适的类加载器,并尝试使用默认的类加载器。有人遇到同样的问题吗?

谢谢 :)

4

0 回答 0