Caused by: org.hibernate.boot.archive.spi.ArchiveException: Could not build ClassFile

3.08K viewsSpring Boot
0
0 Comments

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
Add a Comment
5

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
Add a Comment
Write your answer.