tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Verna Knapp <ver...@navicom.com>
Subject Cannot set up certs for trusted CAs; JCE and tomcat
Date Fri, 07 Jul 2000 16:18:15 GMT
This is starting to look more and more like a tomcat problem. 

I am able to reproduce this bug both with cocoon and without cocoon
installed, and on more than one machine. 

The environment is:
JCE1.2.1beta
JDK1.3
Tomcat 3.1
(sometimes...Cocoon 1.7.4)

Windows NT 4.0 svc pack 5

This is very similar to a bug that happens when using JDK1.2.x. Right
now the Sun site reports that JDK1.3 must be used to avoid the problem.
The bug itself is in the JCE. However, it should not appear if JDK1.3 is
being used.

I don't encounter the bug when executing the same code without Tomcat,
just using the jdk 1.3 java. This makes me wonder what tomcat is doing
to stir it up, and whether it is the same bug as the one reported on the
Sun site or not.

What looks like the same bug is also reported in the archives by another
user who was using Solaris and WebLogic. In that user's case, he was
trying to getCipher rather than generate a key. It is probably the same
bug, though.

I compile with the JDK compiler. JDK1.2.x of any flavor is not installed
on one of the two machines I reproduced this on.

I have a version of this that happens with XSP/XML under cocoon, and
another that happens at the same place in a JSP. Both instantiate a
class and call it.

Verna Knapp
vernak@navicom.com
Verna_Knapp@cv.hp.com




             java.lang.ExceptionInInitializerError:
java.lang.SecurityException: Cannot set up certs for trusted CAs
                     at javax.crypto.b.([DashoPro-V1.2-120198])
                     at
javax.crypto.KeyGenerator.getInstance([DashoPro-V1.2-120198])
                     at
CryptoSecurity.createNewKey(CryptoSecurity.java:442)
                     at CryptoSecurity.getKey(CryptoSecurity.java:130)
                     at CryptoSecurity.encrypt(CryptoSecurity.java:112)
                     at
_I_._jakarta_tomcat._webapps._encryptDecrypt._encrypt.encrypt(_encrypt.java:62)
                     at
_I_._jakarta_tomcat._webapps._encryptDecrypt._encrypt.populateDocument(_encrypt.java:183)
                     at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
                     at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:456)
                     at org.apache.cocoon.Engine.handle(Engine.java:305)
                     at
org.apache.cocoon.Cocoon.service(Cocoon.java:167)
                     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
                     at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
                     at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
                     at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
                     at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
                     at java.lang.Thread.run(Unknown Source)

Mime
View raw message