INFO Getting keystore type instance: PKCS11INFO Getting key aliasINFO Starting JSignPdfINFO Checking input and output PDF paths.INFO Used key alias: Firma Digitale Qualificata 3-2012INFO Loading private keyINFO Getting certificate chainINFO Opening input PDF file: C:\Programmi\jsignpdf\docs\JSignPdf.pdfINFO Creating output PDF file: C:\Programmi\jsignpdf\docs\JSignPdf_signed2.pdfINFO Creating signatureINFO Updating PDF version info 1.4 -> 1.7INFO Setting reason: FirmaINFO Setting location: PadovaINFO Setting contact: ContattoINFO Setting certification levelINFO Configuring visible signatureINFO Use only layers recommend by Acrobat 6: trueINFO Setting background image scaleINFO Setting Layer 2 text (description)INFO Setting Layer 4 text (status)INFO Setting Render modeINFO Creating visible signatureINFO Processing (it may take a while) ...INFO Finished: Creating of signature failed.Exception in thread "Thread-4" java.lang.NoSuchMethodError: org.bouncycastle.asn1.DERSequence.<init>(Lorg/bouncycastle/asn1/ASN1EncodableVector;)Vat com.lowagie.text.pdf.PdfPKCS7.getAuthenticatedAttributeSet(Unknown Source)at com.lowagie.text.pdf.PdfPKCS7.getAuthenticatedAttributeBytes(Unknown Source)at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:344)at net.sf.jsignpdf.SignerLogic.run(SignerLogic.java:108)at java.lang.Thread.run(Unknown Source)
Hello Josef,
I forgot to try the installer version....
I was using the bynary zip files with JDK 1.6.0_38 installed and this is the problem!!
I used "java -jar JSignPdf.jar" with no global CLASSPATH environment.
With the installer version and the JRE 1.6.0_30 embedded everything works fine!