Preethy,
I suggest you move to the latest version 7.2.x or 7.3 [1]
You will have to verify configuration properties since some names have changed; and regenerate some keys because minimum key lengths have changed; and update any custom code.
Java and tomcat will also have to be upgraded.
You can build with (even if you have custom code):
./gradlew build
What kind of build process are you using?
It is very possible that the problem you are having has been fixed in the intervening years. [2]
Ray
Note: you do not need to go through a stepwise upgrade process.