Problem
java.lang.NoSuchMethodError: com.rsa.jsafe.CryptoJ.isNativeAvailable(Ljava/lang/String;)Ah you lil devlil , this exception wasted alot of my time debugging and looking into the solution , this could be because of many reasons
- You have new jar in you project and you compile your code with it but when you deploy to server , it has old jar file in it's class path , and the class loader has loaded the old jar file which doesn't have this new method in the specified class.
- You may have two version of same jar file in your class path , an older version and a newer version.
I had dfc.properties file in my classpath also , everything was perfect.
Reason , your solution works is because dfc.keystore is created for the first time when application starts and it uses the latest crypto jars which are not compatible but if dfc.keystore is already copied, than that action is not requried and your solution worked.
ReplyDeleteThanks for explaining :)
ReplyDelete