• 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

Exception with Servlet

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am using DES3 Encryption Algorithm for encrypting and decrypting password.The jdk version which I am using is 1.4.2

When I run my program as an independent standalone application then the entire process (encryption and decryption) runs fine.But when I use my servlet to call the encrypt or decrypt method then I get the foll. error.

I am using iPlanet 6.0

[17/Apr/2006:12:30:31] failure ( 3548): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.NoClassDefFoundError: javax/crypto/spec/DESedeKeySpec
at security.BOSEncryption_Citi.(BOSEncryption_Citi.java:41)
at security.BOSEncryption_Citi.decrypt(BOSEncryption_Citi.java:93)
at WebStartUpServlet_Citi.init(WebStartUpServlet_Citi.java:101)
at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:405)
at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:165)
at com.iplanet.server.http.servlet.NSServletRunner.(NSServletRunner.java:157)



Plz let me know what is wrong with the code.Or is something wrong with the classpath.

Regards

Nikhil
 
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


The container is unable to find the "DESedeKeySpec" class. Check your classpath settings.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The exception message seems awfully clear as to what class is not being found at runtime. Are you sure you don't want to try to solve this yourself before bothering other people?

Moving to Java in General (Beginner).
 
For my next trick, I'll need the help of a tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic