SoapUI中的库冲突 [英] Library conflict in SoapUI
本文介绍了SoapUI中的库冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题很简单:
我创建了自己的jar,以便在常规的testSuite中使用它:
I created my own jar to use it in a groovy testSuite :
我的图书馆需要:
bcpkix-jdk15on-1.49
和bcprov-ext-jdk15on-159
在我的soapui路径的lib文件夹中,我有:
In the lib folder in my soapui path I have :
bcprov-jdk15-1.46
因此,当我将jar导入soapUI中的常规脚本时,会出现此错误:
So when I import my jar into a groovy script in soapUI, I get this error :
java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z error at line: 7
在bcprov库中可能存在冲突,有没有办法解决这个问题?
Which is probably a conflict in bcprov library, is there a way to solve this ?
推荐答案
您有几个选择:
- 使用您自己的文件升级soapUI
lib
目录中的所有现有库,并将所有其他库放入bin/ext
中,然后重新启动soapUI.如果soapUI没有使用替换后的库的特定功能,您可能会很幸运,并且可以正常工作. - 否则,请创建您自己的Groovy或Java项目,其中包含您的依赖项以及一个简单的界面来调用所需的功能.将此新项目捆绑到JAR中,并将其放入
bin/ext
中,然后重新启动soapUI.然后,您应该能够通过Groovy脚本从soapUI内调用界面.
- Upgrade any existing libraries in soapUI's
lib
directory with your own and put any additional libraries inbin/ext
and then restart soapUI. If soapUI isn't using specific features of the replaced libraries you could be lucky and it'll just work. - Otherwise, create your own Groovy or Java project containing your dependencies along with a simple interface to call the functionality you need. Bundle this new project into a JAR and drop it into
bin/ext
and restart soapUI. You should then be able to call your interface from within soapUI through a Groovy script.
这篇关于SoapUI中的库冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文