tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Olalla <>
Subject Tomcat and JCE, more than friends?
Date Fri, 07 Sep 2001 15:21:20 GMT

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. 

View raw message