简体   繁体   English

签名者信息与同一个其他类的签名者信息不匹配 package

[英]Signer information does not match signer information of other classes in the same package

class "org.mortbay.util.DateCache"'s signer information does not match signer information of other classes in the same package class “org.mortbay.util.DateCache”的签名者信息与同一类中其他类的签名者信息不匹配 package

I am working on GWT and maven. My GWT code is in project2.我正在研究 GWT 和 maven。我的 GWT 代码在 project2 中。 It works fine when I run it alone but when I try to create a dependency on another project, I get this error.当我单独运行它时它工作正常但是当我尝试创建对另一个项目的依赖时,我收到此错误。 I also searched on google for the solution.我也在谷歌上搜索了解决方案。 What I got is that classes belonging to the same package are loaded from different JAR files.我得到的是属于相同 package 的类是从不同的 JAR 文件加载的。 But I have no clue on how to make sure that they have the same certificate.但我不知道如何确保他们拥有相同的证书。 Is there any way that I could get rid of this.有什么办法可以摆脱这个。

Thanks谢谢

I was having a similar problem and I solved it by following these instructions:我遇到了类似的问题,我按照以下说明解决了这个问题:

"make sure that hamcrest.jar is before the JUnit library included by Eclipse in the classpath." “确保 hamcrest.jar 在类路径中 Eclipse 包含的 JUnit 库之前。”

Make your objects static and singleton, and load them on start up, so that whenever a new jar tries to initiate it, it will always return the same object. I know that some work should be done here, but you need it!让你的对象 static 和 singleton,并在启动时加载它们,这样每当一个新的 jar 尝试启动它时,它总是会返回相同的 object。我知道这里应该做一些工作,但你需要它!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 启动程序后CGLIB错误(签名者信息与同一软件包中其他类的签名者信息不匹配) - CGLIB error after launching program (signer information does not match signer information of other classes in the same package) java.lang.SecurityException: signer information does not match other classes in the same package in PowerMock 中的签名者信息与其他类的签名者信息不匹配 - java.lang.SecurityException: signer information does not match signer information of other classes in the same package in PowerMock java.lang.SecurityException:签名者信息与同一包中其他类的签名者信息不匹配 - java.lang.SecurityException: signer information does not match signer information of other classes in the same package JFace签名者信息与同一package中其他类的签名者信息不匹配 - JFace signer information does not match signer information of other classes in the same package Hamcrest Matcher 签名者信息与同一包中其他类的签名者信息不匹配 - Hamcrest Matcher signer information does not match signer information of other classes in the same package 类“ SynchronousHelper”的签名者信息与同一包中其他类的签名者信息不匹配 - class “SynchronousHelper”'s signer information does not match signer information of other classes in the same package java.lang.SecurityException:类“XYZ”的签名者信息与同一包中其他类的签名者信息不匹配 - java.lang.SecurityException: class “XYZ”'s signer information does not match signer information of other classes in the same package 在Android Studio 3.1中构建失败,gradle 4.4类签名者信息与同一包中其他类的签名者信息不匹配 - Build failed in Android Studio 3.1, gradle 4.4 class signer information does not match signer information of other classes in the same package 类“ org.bouncycastle.asn1.ASN1ObjectIdentifier”的签名者信息与同一包中其他类的签名者信息不匹配 - class “org.bouncycastle.asn1.ASN1ObjectIdentifier”'s signer information does not match signer information of other classes in the same package org.apache.fop.apps.FOPException“的签名者信息与同一包中其他类的签名者信息不匹配 - org.apache.fop.apps.FOPException"'s signer information does not match signer information of other classes in the same package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM