Am getting the below error when I deploy the spring boot war in the tomcat server.
Caused by: org.hibernate.boot.archive.spi.ArchiveException: Could not build ClassFile
Mounika Changed status to publish November 3, 2020
Root Cause 1: There are duplicate jars with different versions.
Solution: Check whether any duplicate jars there in the lib folder. if you found any duplicate jar’s remove one jar then run.
Root Cause 2: The below jars may be missing in your pom.xml or build.
hibernate-core-X.X.X.Final.jar
javassist-X.XX.X-GA.jar
Solution: Please add the above two dependencies in POM.xml and take the war.
Mounika Changed status to publish November 3, 2020