• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!

 
reply
    Bookmark Topic Watch Topic
  • New Topic