tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Fields <dfie...@interpage.net>
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.

Cheers,

Doug

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 mikal.org) 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 -Djava.protocol.handler.pkgs=sun.net.www.protocol 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?
>
>Thanks,
>
>Doug
>
>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>(User.java:200)
>         at X.servlet.Login.processRequest(Login.java:137)
>         at X.servlet.Login.doPost(Login.java:197)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at 
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at 
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
>         at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at 
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at 
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
>



Mime
View raw message