Chris Dail schrieb:
Stimpmania,

The error "Cannot find any provider supporting RC4" indicates that Java cannot find the security provider (in this case bouncy castle). Chances are you have another version of Java on the path that is being executed instead of the one in "C:\j2sdk1.4.2_06\jre".

When you install the SDK, it defaults to installing both the SDK and the path specified and the standalone JRE in "C:\Program Files\Java\j2re1.4.2_06". When you execute the "java" command, it is probably using this version of Java instead. If you install Bouncy Castle to the program files JRE as well fop should work for you.
Thanks a lot. That solved my problem. I just copied the "bcprov-jdk14-125.jar" to 
"C:\Programme\Java\j2re1.4.2_06\lib\ext", edited the "java.security" File and it worked.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: November 22, 2004 1:59 PM
To: [EMAIL PROTECTED]
Subject: PDF encryption

Hello,

i'm using fop 0.20.5 on windows xp sp2 with sdk 1.4.2_06 and need help with the encryption-feature.
I'm always getting the message "Cannot find any provider supporting RC4", as described on http://xml.apache.org/fop/pdfencryption.html.


What I have done:

- downloaded the "bcprov-jdk14-125.jar" from bouncycastle.org
- copied it into "C:\j2sdk1.4.2_06\jre\lib\ext"
- edited the file "java.security" and added the line "security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider"


- added "C:\j2sdk1.4.2_06\jre\lib\ext\bcprov-jdk14-125.jar" to the classpath
- build fop, getting the message "prepare-jce:
[echo] JCE is present. Installing PDF encryption support.
[copy] Copying 1 file to C:\Programme\fop\build\src"


When i start fop via the command line with "fop -nocopy -xml input.xml -xsl stylesheet.xsl -pdf output.pdf"
i get the error-message mentioned above -> "Cannot find any provider supporting RC4"


Do you have an idea what i've done wrong. i've spend about 6 hours now without sucess.

Please Help
Thanx
Stimpmania

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to