Axon.ivy 7.0 - the Digital Business Platform - is out now...

Hello Ivy Team,

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 (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/) i get a 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)

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)

When I try to delete this jar it is automatically recreated on startup.

Could you please help me to solve this problem.

I am using the ivy Designer 5.1.8

Thank you and best regards Florian

asked 21.04 at 06:11

Florian%20Heinrich's gravatar image

Florian Hein...
515511
accept rate: 0%

edited 21.04 at 08:51

have you tried to put the JAR to jre/lib/ext ?

(24.04 at 03:34) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

You could try to repack the bouncycastle library, so that it will be available with another namespace. See http://repackage.org/

Or the HSQL thread, where this solution was applied to the HSQL library: http://answers.axonivy.com/questions/960/use-the-latest-hsqldb-within-my-project

link

answered 24.04 at 08:10

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.5k11032
accept rate: 67%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40

Asked: 21.04 at 06:11

Seen: 184 times

Last updated: 24.04 at 08:10