Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes URGENT: How to config the security provider in JBuilder 5 /Tomcat 3.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT: How to config the security provider in JBuilder 5 /Tomcat 3.2" Watch "URGENT: How to config the security provider in JBuilder 5 /Tomcat 3.2" New topic
Author

URGENT: How to config the security provider in JBuilder 5 /Tomcat 3.2

Linda Xu
Ranch Hand

Joined: Feb 14, 2000
Posts: 51
Hi,
I am using some encrypt library in my code. I added the line:
security.provider.3=com.sun.crypto.provider.SunJCE
into the java.security file at:
C:\jbuilder5\jdk1.3\jre\lib\security\java.security
Then I can make any stand alone application at JBuilder in which I call the encrypt mathod in the library. But when I do the same thing in a servlet, I still can compile it correctly, but when I run it, it will give me a java.lang.nullPointerException
It looks that the problem is in the encrypt, maybe I didn't set the security.provider for Tomcat correctly, how to config this?
Thanks!

 
wood burning stoves
 
subject: URGENT: How to config the security provider in JBuilder 5 /Tomcat 3.2