marcl
10 years agoOccasional Contributor
Multiple versions of libraries in the /lib folder ?
In the /lib folder of ReadyAPI, I find can see that there's multiple versions the the same library:
- bcprov-jdk14-1.38.jar
- bcprov-jdk14-138.jar
- bcprov-jdk15-144.jar
I'm currently writing a plugin which uses sshj, who relies on some org.bouncycastle package. The problem is that the three jar listed above contains classes from this package, which causes a SecurityException at runtime (signer information does not match signer information of other classes in the same package).
I was able to successfully run my plugin by removing the two first jar from the /lib folder - this confirmed that the problem comes from the inclusion of those redundant jars in ReadyAPI libpath.
My question is twofold:
- Why include three different versions of the same jar in your libpath?
- How can I fix this without having to remove jar from the lib folder? It's a solution I'm not comfortable with as it might have unexpected side effects, and it's not practical: I need the plugin to work on the ReadyAPI installation of all my co-workers.
Nb: that's with version 1.2.2. Using version 1.3.1, there's even a fourth version of the library in the lib folder !