Exception with Servlet

Posted on 2006-04-17
Last Modified: 2013-11-24
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.


Question by:nikhilbansal
    LVL 5

    Accepted Solution

    I think your iPlanet 6.0 is not properly configured.
    Check which JDK version it is using?
    LVL 30

    Assisted Solution

    Yes, perhaps it is using 1.3 or lower because DESedeKeySpec was introduced in 1.4. Do you have multiple versions installed on your machine? Check what is the JAVA_HOME environment variable pointing to. If it is not there (or pointing to something else), make it point to your JDK 1.4 installation (you can also uninstall your lower Java version if it is not required). Also try making PATH point to 1.4\bin using:

    LVL 30

    Expert Comment

    by:mayankeagle tells you how to configure the correct Java version for iPlanet.
    LVL 5

    Assisted Solution


    and the related jar should be avilable to the Servlet(Web) Class Loader.
    LVL 92

    Assisted Solution

    looks like the DES3 provider is not installed.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now