----- Original Message ----- 
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 8:46 AM
Subject: Re: java.security.NoSuchAlgorithmException in Tomcat SOLUTION


> For some reason Tomcat is not seeing the com.sun.crypto.provider package
in
> jre/lib/ext.  The work around is to put the SunJCE provider
> (sunjce_provider.jar) into commons/lib of Tomcat and to then add the
> provider manually with
>    Security.addProvider(new com.sun.crypto.provider.SunJCE()).  Why this
is
> necessary is a quandry to me.  If I had a clue why this was happening, I
> would try to fix it.  But, this is not my area of expertise and I am
stumped.
>

You can either add sunjce_provider.jar to $CATALINA_HOME/common/endorsed, or
add $JAVA_HOME/jre/lib/ext to the -Djava.endorsed.dirs in the startup
parameters.

>
> At 07:26 AM 3/27/2004, you wrote:
> >I am using j2se 1.4.2_04.  When I attempt to run
> >java.security.KeyPairGenerator.getInstance("DH") in Tomcat, I get a stack
> >trace as follows:
> >
> >
> >java.security.NoSuchAlgorithmException: DH KeyPairGenerator not available
> >         java.security.Security.getEngineClassName(Security.java:584)
> >         java.security.Security.getEngineClassName(Security.java:595)
> >         java.security.Security.getImpl(Security.java:1044)
> >
java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:146)
> >
org.apache.jsp.TEST_KEYPAIR_jsp._jspService(TEST_KEYPAIR_jsp.java:58)
> >
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >
>
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
204)
> >
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> >
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >
> >I can run the DH generator from the command line.  So, the DH
> >KeyPairGenerator IS available.  I have no trouble with Resin 2.1.x.  What
> >is up?  Come on you guys, give me a hand here.  The documentation
> >indicates that I should not be having a problem.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to