tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Fields <>
Subject How to file a bug? (was Re: Final resolution on JCE exceptions and Tomcat (3.2.1)?)
Date Wed, 02 May 2001 14:11:16 GMT
Hello all,

Give no response to the below message, I would like to file this as a 
formal bug report. It seems that I am not the only one having to deal with 
this bug as similar messages came out in the past six months.



At 06:00 PM 4/29/2001, Doug Fields wrote:
>Hello all,
>Today I encountered the same problem as several others (based upon my 
>search of the archive on regarding using Sun JCE 1.2.1 in a web 
>app deployed in Tomcat (3.2.1) by putting the four jar files in the 
>WEB-INF/lib dir. That is, it throws a SecurityException (see below).
>There were to suggestions made:
>1) Add to the java 
>command for starting tomcat
>2) Move the 4 jar files into the tomcat lib dir
>The first doesn't work for me.
>The second isn't acceptable in the long term, and I'd like to avoid it in 
>the short term as well. The other problem, is, it doesn't work for me: I 
>get a NoClassDefFoundError: com/sun/crypto/provider/SunJCE.
>I fixed that by moving the tomcat dir out of "Program Files" which allowed 
>the classpath to be set properly.
>So, in the end, I got it working with option #2, above.
>Does anyone know how to get it working by putting the JCE files into the 
>lib dir of the web application (WEB-INF/lib)? Does this work propertly in 
>Tomcat 4?
>2001-04-29 05:42:03 - Ctx( X ): Exception in: R( X + /Login + null) - 
>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([DashoPro-V1.2-120198])
>         at X.User.<clinit>(
>         at X.servlet.Login.processRequest(
>         at X.servlet.Login.doPost(
>         at javax.servlet.http.HttpServlet.service(
>         at javax.servlet.http.HttpServlet.service(
>         at 
> org.apache.tomcat.core.ServletWrapper.doService(
>         at org.apache.tomcat.core.Handler.service(
>         at 
> org.apache.tomcat.core.ServletWrapper.service(
>         at 
> org.apache.tomcat.core.ContextManager.internalService(
>         at 
> org.apache.tomcat.core.ContextManager.service(
>         at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
>         at 
> org.apache.tomcat.service.TcpWorkerThread.runIt(
>         at 
> org.apache.tomcat.util.ThreadPool$
>         at

View raw message