When I run Security.getProviders() in Tomcat, I do not get SunJCE. All I see is:

SUN
SunJSSE
SunRsaSign
SunJGSS

even though I have the following in the java.security file:

security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
security.provider.3=com.sun.rsajca.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
Why is that?  When I run from the command line, I do get SunJCE.  I get:

SUN
SunJSSE
SunRsaSign
SunJCE
SunJGSS

Accordingly, I can run KeyPairGenerator.getInstance("DH") from the command line, but not from a JSP page in Tomcat. I have no problem with Resin, so I am assuming, perhaps wrongly, that the problem is in Tomcat.

Anyone have any ideas?

Michael McGrady

Reply via email to