java.lang.LinkageError:加载器约束违规错误

时间:2015-02-03 14:55:44

标签: jboss wildfly-8

我在运行时在WildFly 8.2中收到此错误:

java.lang.LinkageError: loader constraint violation: when resolving method "org.app.security.key.MyKeyRing.<init>(Lorg/app/security/key/MyPrivateKey;Lorg/app/security/key/MyPublicKey;[Ljava/security/cert/Certificate;)V" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/app/security/auth/KeyLoginModule, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for resolved class, org/app/security/key/MyKeyRing, have different Class objects for the type curity/key/MyPrivateKey;Lorg/app/security/key/MyPublicKey;[Ljava/security/cert/Certificate;)V used in the signature

课程以&#39;我的&#39;开头。是为应用程序创建的,并且位于EAR文件中。在WildFly中创建了一个自定义模块,也可以使用包含这些类的jar。

可能是什么原因?

谢谢!

0 个答案:

没有答案