Gava 8 certandkeygen exception exception at runtime

I have a third party java package that is compiled using Java 6 version and this package is deployed in java 8 environment. Now I see the following exception at runtime.

Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: sun/security/x509/CertAndKeyGen
       at com.xxx.ws.security.impl.DefaultSecurityStore.generateSelfSignedEntry(Unknown Source)
       at com.xxx.ws.security.impl.SecurityPluginUtil.sign(Unknown Source)
       at com.xxx.ws.security.impl.ProcessingContext.processOutbound(Unknown Source)
       at com.xxx.ws.security.impl.BaseSecurityEnvironment.secureOutboundMessage(Unknown Source)
       at com.xxx.em.launch.message.LaunchRequestMessage.sendTo(Unknown Source)

      

I researched this exception and I found that Java 8 has ported the class CertAndKeyGen

to sun.security.tools.keytool

. But in this case, this package is compiled using java 6 and is referencing the package sun.security.x509.CertAndKeyGen

. What could be an alternative approach to mitigate this problem. , Thank you for your time.

+3
java java-8 java-security


source to share


No one has answered this question yet

Check out similar questions:

6170
Is Java "pass-by-reference" or "pass-by-value"?
3799
How do I read / convert an InputStream to a string in Java?
3324
How to generate random integers in a specific range in Java?
3073
How to efficiently iterate over each entry in a Java map?
3044
Making a memory leak with Java
2956
What is the difference between public, secure, batch and private in Java?
2936
When to use LinkedList over ArrayList in Java?
2853
How can I convert String to int in Java?
2248
Is a finally block always executable in Java?
898
:: (double colon) in Java 8



All Articles
Loading...
X
Show
Funny
Dev
Pics