Hi 

I am having the same problem with JCE and tomcat 3.2.2.

This is on NT, SP5, Tomcat 3.2.2, and cocoon2.

The following pasted email I saw in the archives, alludes to 4 jar files
that when moved, fixes the problem.

I have moved the jce1.2.1.jar, and the jce provider.jar out of the web-inf
dir into tomcat/lib.
I still get the same exception..

maybe from Doug fields the author of the prev mail, could respond...

What are the other 2 jars?
Thanx

Veena
-------------------------------------------------------
From: Doug Fields 
Subject:  Final resolution on JCE exceptions and Tomcat (3.2.1)?
Date:  Sun, 29 Apr 2001 18:00:20 -0400

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:79
7)
         at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)



----------------------------------------------------------------------------
----
<< Newer Message   |   Archive Home   |   Older Message >> 
----------------------------------------------------------------------------
----

Mid to Senior level J2EE software engineer available -- JSP expert!


----------------------------------------------------------------------------
----
Archive Home  

----------------------------------------------------------------------------
----
    

Reply via email to