This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Exception with Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception with Servlet" Watch "Exception with Servlet" New topic

Exception with Servlet

Nikhil Bansal
Ranch Hand

Joined: Jan 24, 2005
Posts: 60
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.(
at security.BOSEncryption_Citi.decrypt(
at WebStartUpServlet_Citi.init(
at com.iplanet.server.http.servlet.NSServletEntity.load(
at com.iplanet.server.http.servlet.NSServletEntity.update(
at com.iplanet.server.http.servlet.NSServletEntity.update(
at com.iplanet.server.http.servlet.NSServletRunner.(

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



Satish Chilukuri
Ranch Hand

Joined: Jun 23, 2005
Posts: 266

The container is unable to find the "DESedeKeySpec" class. Check your classpath settings.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

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).

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Exception with Servlet
Similar Threads
Problem with decryption
Errors when running a servlet
how to register a provider in a applet
Encryption with Midlet
Struts in iPlanet 6.0 SP1