Forums Register Login

Decryption issue in jdk1.4

+Pie Number of slices to send: Send
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...
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
I will open the floodgates of his own worst nightmare! All in a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1224 times.
Similar Threads
SocketTimeoutException in Weblogic Server
SocketTimeoutException in Weblogic Server
Bean Deleted Exception
java. lang. IllegalArgumentException: argument type mismatch Error in weblogic
java.lang.NoSuchMethodError
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:23:57.