You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by JB...@s-s-t.com on 2004/11/23 23:14:55 UTC
JCE present but not working
Hi, all,
Here's the scoop:
* I am trying to get encryption to work in FOP.
* I am using Windows XP, Java 1.4.1_02, and FOP 0.20.5.
* I have downloaded bcprov-jdk14-125.jar from Bouncy Castle
and have put that jar file in fop-0.20.5\lib.
* I have modified build.bat to include the following line in the classpath
list:
set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\bcprov-jdk14-125.jar
* I have modified j2sdk1.4.1_02\jre\lib\security\java.security to include
the
following line:
security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
* When I ran build.bat, it ended with the happy BUILD SUCCESSFUL message,
and the
build output included the following happy lines:
prepare-jce:
[echo] JCE is present. Installing PDF encryption support.
* I have modified fop.bat to include the following line in the classpath
list:
set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\bcprov-jdk14-125.jar
* However, when I run FOP to try to create a PDF file with encryption
options
set, I still get this unhappy message:
[ERROR] Cannot find any provider supporting RC4
What have I not done or done wrong?
Thanks.
Jay Bryant
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: JCE present but not working
Posted by JB...@s-s-t.com.
You were correct, Andreas.
Your first e-mail made me wonder if I had Java installed in more than one
place, and I do. I had modified the java.security file for the wrong one.
I have inherited this machine, and under a big enough time crunch that I
cannot wipe its drives and build it up as I would like. Consequently,
there are tools (some of which I use and some of which I don't) scattered
all over the place.
Thanks for the help.
Jay Bryant
"Andreas L. Delmelle" <a_...@pandora.be>
11/23/2004 04:24 PM
Please respond to
fop-user@xml.apache.org
To
<fo...@xml.apache.org>
cc
Subject
RE: JCE present but not working
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:a_l.delmelle@pandora.be]
>
>
> ... (probably) wrong location again. It's far more likely that you have
a
> separate Java Runtime under "Program Files" somewhere (--the one your
> %JAVA_HOME% refers to).
Hmm... A bit more precise: "the Java Runtime from which the 'bin'
directory
appears first in your %PATH% environment var"
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: JCE present but not working
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:a_l.delmelle@pandora.be]
>
>
> ... (probably) wrong location again. It's far more likely that you have a
> separate Java Runtime under "Program Files" somewhere (--the one your
> %JAVA_HOME% refers to).
Hmm... A bit more precise: "the Java Runtime from which the 'bin' directory
appears first in your %PATH% environment var"
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: JCE present but not working
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: JBryant@s-s-t.com [mailto:JBryant@s-s-t.com]
>
Hi,
> * I have downloaded bcprov-jdk14-125.jar from Bouncy Castle
> and have put that jar file in fop-0.20.5\lib.
Wrong location (see also a thread from ... yesterday, I believe)
You have to put it in the lib\ext directory for the JVM used when running
FOP, so...
<snip />
> * I have modified j2sdk1.4.1_02\jre\lib\security\java.security to include
> the
> following line:
> security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
>
... (probably) wrong location again. It's far more likely that you have a
separate Java Runtime under "Program Files" somewhere (--the one your
%JAVA_HOME% refers to). It's the java.security file from there that you need
to modify.
Hope this helps!
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org