• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Decryption issue in jdk1.4

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

While are trying to decrypt the message using the jdk1.4 (encrypted using jdk 1.3) getting the following error. Pls, advice what CLASSPATH required at our side to resolve the below issue. Kindly note that we can not ask the other party to upgrade their jdk.

java.lang.NoClassDefFoundError
at javax.crypto.KeyGenerator.getInstance(DashoA12275)
at payment.Security.encrypt(Security.java:144)
at payment.CitiSendServlet.doPost(CitiSendServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

Thanks in Advance.
Krish...
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Show us the lines of your source code where this exception happens class payment.Security, method encrypt, around line 144 of Security.java).

Which encryption algorithm are you using? How have you configured the encryption stuff? Do you have an implementation of the encryption algorithm somewhere? Make sure to include that in the classpath.
 
Krish Dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply. I am using the iaik_jce_full.jar. It works for jdk1.3 but not for jdk1.4.2

Error occured while calling the KeyGenerator.class (getInstance method) in the iaik_jce_full.jar

Can I replace the iaik_jce_full.jar with the jce1_2_1.jar or do I need to change/add in the provider list in java.security file in jdk1.4.2

Pls, advice.

Thanks,
Krish.
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aha. I searched a bit on Google, you seem to be using a library that came from here: http://jce.iaik.tugraz.at/

Read the documentation on that website and search for "NoClassDefFoundError" there.
 
reply
    Bookmark Topic Watch Topic
  • New Topic