Are you using Tomcat 3.1.x?

>From the tomcat-users mailing list:
    http://www2.real-time.com/pipermail/tomcat-users/2000-October/012931.html

The easiest workarounds are...

Add this line to your $HOME/.tomcatrc:
    TOMCAT_OPTS="-Djava.protocol.handler.pkgs=sun.net.www.protocol"

Or add this line to your application before using JCE:
    System.getProperties().setProperty("java.protocol.handler.pkgs",
                                       "sun.net.www.protocol");

Or upgrade to a newer Tomcat release.

-- Si

On Mon, Sep 10, 2001 at 11:56:47AM +0200, Israel Olalla wrote:
> 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.
> 
> -- 
> ----------------------------------------------------------------------
> Glenn Nielsen             [EMAIL PROTECTED] | /* Spelin donut madder    |
> MOREnet System Programming               |  * if iz ina coment.      |
> Missouri Research and Education Network  |  */                       |
> ----------------------------------------------------------------------
> 
> 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. 
> 

Reply via email to