lember wrote: > Hi. We are getting the java.lang.NoClassDefFoundError: > org/bouncycastle/asn1/ASN1OctetString using writer.setEncryption and we've > checked all the steps you mention before. We have a test server where the > pdf encryption works fine, it has tomcat 6 with java 1.6, but in production > server we have tomcat 6 with java 1.4 and the ecryption doesn't work. We've > also copied the 1.4 bc jars. Is there anything else we can check out?
Write a simple Servlet that doesn't involve iText, but that tries to use some classes from BouncyCastle. Do you get the same error? Then you've put the jars on the wrong place. Another possibility: maybe you're using jars (e.g. the iText jar) compiled with a higher Java version. Incompatible Java versions can lead to exceptions that say a class can't be found. Another possibility: you have more than one jar of the same library but with a different version in your CLASSPATH. In any case: it works on your test server, so it's not an iText problem, but a configuration error. Configuration error can best be solved by the person who actually has access to the system. Solving configuration errors remotely without being able to look at the system is difficult. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
