Upgrading elasticsearch from 5.6.5 to 7.4.0

I have upgraded the rest high level client from 5.6.5 to 7.4.0 , seeing the below exceptions:

Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module oi: null
at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:844)
at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:216)
at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2148)
... 17 more
Caused by: java.lang.IllegalArgumentException
at org.apache.xbean.asm5.ClassReader.(Unknown Source)
at org.apache.xbean.asm5.ClassReader.(Unknown Source)
at org.apache.xbean.asm5.ClassReader.(Unknown Source)
at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1148)
at org.apache.xbean.finder.AnnotationFinder.(AnnotationFinder.java:139)
at org.apache.xbean.finder.AnnotationFinder.(AnnotationFinder.java:152)
at org.apache.openejb.config.FinderFactory$OpenEJBAnnotationFinder.(FinderFactory.java:514)
at org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:259)
at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:77)
at org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:66)
at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:836)
... 19 more

It works perfectly fine when i tried with 6.1* .
Can anyone help me finding the root cause of this issue.

tomee 1.7.1
elasticsearch 7.4.0

This type of upgrades is not supported. I am not sure if you saw our Upgrade Documentations that describes supported upgrade paths and modes.