jQuery in Action, 3rd edition
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
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.(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.



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: 24199

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: http://aspose.com/file-tools
subject: Exception with Servlet
It's not a secret anymore!