Questions Tagged With javahttps://answers.axonivy.com/tags/java/?type=rss&user=Florian%20Heinrichquestions tagged <span class="tag">java</span>enFri, 21 Apr 2017 06:11:03 -0400bouncycastle bcprov-jdk15on-1.56https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56<p>Hello Ivy Team,</p> <p>I would like to sign PDF files using apache pdfbox. Apache pdfbox requires the bcprov-jdk15on for encryption and signing. When I try to run the signing example (<a href="https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/)">https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/)</a> i get a <code> Exception in thread "main" java.lang.SecurityException: class "org.bouncycastle.asn1.ASN1Primitive"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(Unknown Source) </code></p> <p>I think this exception occurs because the designer has a bcprov-jdk15-1.45.jar already included, but this is not the jar pdfbox expects. (bcprov-jdk15 and bcprov-jdk15on)</p> <p>When I try to delete this jar it is automatically recreated on startup.</p> <p>Could you please help me to solve this problem.</p> <p>I am using the ivy Designer 5.1.8</p> <p>Thank you and best regards Florian</p>Florian HeinrichFri, 21 Apr 2017 06:11:03 -0400https://answers.axonivy.com/questions/2585/bouncycastle-bcprov-jdk15on-1-56java