Library conflict in SoapUI

半腔热情 提交于 2020-02-06 08:21:48

问题


My problem is simple :

I created my own jar to use it in a groovy testSuite :

My lib needs :

bcpkix-jdk15on-1.49 and bcprov-ext-jdk15on-159

In the lib folder in my soapui path I have :

bcprov-jdk15-1.46

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

Which is probably a conflict in bcprov library, is there a way to solve this ?


回答1:


You have a couple of options:

  • Upgrade any existing libraries in soapUI's lib directory with your own and put any additional libraries in bin/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.


来源:https://stackoverflow.com/questions/49688896/library-conflict-in-soapui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!