[英]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.