java.lang.SecurityException:签名者信息与同一包中其他类的签名者信息不匹配 [英] java.lang.SecurityException: signer information does not match signer information of other classes in the same package
问题描述
我们在我们的Java应用程序中重新安全证书,突然我们开始收到下面提到的异常:
We have renewed security certificates in our java applications and suddenly we have started receiving below mentioned exception:
java.lang.SecurityException: class "org.hibernate.cfg.Configuration"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:806) [rt.jar:1.6.0_37]
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487) [rt.jar:1.6.0_37]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:625) [rt.jar:1.6.0_37]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_37]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:344)
我们使用ANT工具来构建我们的代码。我在 SO 上找到了一些描述类似问题的链接。 Bur我不知道如何解决与hibernate jar有关的问题。
We use ANT tool to build our code. I found some links over the SO describing the similar issue. Bur I am not sure how to resolve issue which is related to hibernate jars. Please let me know, if you have any idea.
推荐答案
可能是您的班级 org.hibernate .cfg.Configuration
没有从您期望这样做的jar加载。
Might be that your class org.hibernate.cfg.Configuration
doesn't get loaded from the jar that you're expecting to do so.
遇到同样的问题,当我们的程序正在为JavaMail加载一些实用程序类,结果是在切换到Maven进行项目配置管理后,我们的一些Jetty依赖项包括jar javax.mail.glassfish
Had the same problem when our program was loading some utility classes for JavaMail and it turned out that after switching over to Maven for project configuration management, some of our Jetty dependencies were including the jar javax.mail.glassfish
, thus conflicting with the explicit mail dependencies.
要想知道在从控制台启动java程序时实际加载哪些jars,可以使用 - verbose:class
选项(如此处所述)。
To find out which jars are actually loaded when launching the java program from console, you can use the -verbose:class
option when starting the Java VM (as described here).
这篇关于java.lang.SecurityException:签名者信息与同一包中其他类的签名者信息不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!