I would suggest that you install the JCE under ${JAVA_HOME}/jre/lib/ext,
statically register SunJCE as a provider (by modifying the system-wide
java.policy and java.security files as explained in the INSTALL.html
that was included with the jce extension), and place the necessary jars
in catalina's CLASSPATH.
That should take care of it -- worked for me.
> Hi,
>
> thanks for your time.
>
> It didn't work. We've put the JCE jar files in CLASSPATH (didn't
> work), then in $JAVA_HOME/jre/lib/ext/ didn't work, then in war WEB-INF/lib
> and didn't work...
>
> And in the problem is that with other Servers (Resin) it worked with
> CLASSPATH variable....
>
> We don't know where is the error, maybe in the ClassLoader... some
> suggestions...
>
> Thanks
>
>
>
> -----Original Message-----
> From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: domingo, 09 de septiembre de 2001 15:20
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat and JCE, more than friends?
>
>
> Try putting the JCE jar files in $JAVA_HOME/jre/lib/ext/.
>
> Regards,
>
> Glenn
>
> Israel Olalla wrote:
> >
> > Hi!
> >
> > We're trying to use the encryption facilities included in the Sun JCE
> > extension. Everything
> > works fine when we try our application using the JDK1.3.1 alone. But
> > when we try it with
> > Tomcat, we get the next exception:
> >
> > java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot
> > set up certs for trusted CAs
> > at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
> > at javax.crypto.Cipher.getInstance([DashPro-V1.2-120198])
> > .......
> >
> > We had the same problem using Resin 2.0.2, and we solved it out invoking
> > Resin without using the
> > startup script, and setting manually the classpath at the command line
> > in order to include the
> > sunjce_provider.jar and the jce1_2_1.jar. This trick does not work (we
> > keep on trying) with Tomcat.
> >
> > Any suggestions?
> >
> > This message and any files transmitted with it are confidential and
> intended
> > solely for the use of the individual or entity to whom they are addressed.
> > No confidentiality or privilege is waived or lost by any wrong
> transmission.
> > If you have received this message in error, please immediately destroy it
> > and kindly notify the sender by reply email.
> > You must not, directly or indirectly, use, disclose, distribute, print, or
> > copy any part of this message if you are not the intended recipient.
> > Opinions, conclusions and other information in this message that do not
> > relate to the official business of Newknow shall be understood as neither
> > given nor endorsed by it.