Hi
My enviornment - Tomcat release build 3.1 on Windows NT and JDK1.3

I am using Java Cryptography Extension (JCE)API within my servlets.
This API uses java.security and java.policy file. As an application my program works. 
But when I call in a servelt, it raises security exception as follows

java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up 
certs for trusted CAs
        at javax.crypto.b.([DashoPro-V1.2-120198])
        at javax.crypto.KeyAgreement.getInstance([DashoPro-V1.2-120198])
...... and so on

I refered tomcat documentation for help. Documentation talks about editing 
tomcat.policy file in config dir. I could'nt find that policy file in my config dir 
and also the entry in server.xml for the ContextInterceptor which defines the class 
named PolicyInterceptor.
My env- Tomcat release build 3.1 on Windows NT and JDK 1.3

Can any one please help me  to overcome this situation.

Also can you suggest how to enter the following command in java.policy file in windows 
env

grant codeBase "file:${java.home}/lib/ext/*" {
        permission java.security.AllPermission;
};
means if I have to give an absolue path like C:\jdk1.3\..... Do I have to use forward 
slash(/) or
backwordslash(\). I am lost there


Prathapan




_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com

Participate in crazy auctions at http://auctions.rediff.com/auctions/



Reply via email to