title: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable
body: <p>I use iText <code>5.5.0</code> and BouncyCastle <code>bcprov-jdk15on-1.50</code> for digitally signing a pdf. It all works fine if I do not include a time stamp in the <code>MakeSignature.signDetached</code> method.</p>
  
  <p>When I use the <code>TSAClient</code> specifying the <code>TSAURL</code>, my code gives me the error</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable at MakeSignature.signDetached method
  </code></pre>
  
  <p>and my program gets terminated even though I handled exceptions.</p>
  
  <p>I tried different versions of bouncycastle jars but I get the same error with difference in the classes not found.</p>
  
  <p>I really need Timestamp included in the Signature. What should I do.</p>