签名者信息与相同包中其他类的签名者信息不匹配 [英] signer information does not match signer information of other classes in the same package

查看:1190
本文介绍了签名者信息与相同包中其他类的签名者信息不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类org.mortbay.util.DateCache的签名者信息与相同包中其他类的签名者信息不匹配

class "org.mortbay.util.DateCache"'s signer information does not match signer information of other classes in the same package

我正在使用GWT和行家。我的GWT代码在project2中。它运行良好,当我单独运行但当我尝试创建依赖另一个项目时,我得到此错误。我也搜索了谷歌的解决方案。我得到的是属于同一个包的类从不同的JAR文件中加载。但我不知道如何确保他们拥有相同的证书。有什么办法可以摆脱这种情况吗?

I am working on GWT and maven. My GWT code is in 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. 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

推荐答案

他们在启动时,以便每当新的jar尝试启动它时,它总是会返回相同的对象。我知道应该在这里完成一些工作,但你需要它!

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!

这篇关于签名者信息与相同包中其他类的签名者信息不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆