Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข2y agoโ€ข
13 replies
<Tim>

java.lang.NoSuchFieldError: UUID

When I try to deploy my WAR archive on the tomcat 10 I just set up (Debian, Tomcat 10.1.23, MySQL 8.24), I get the following error:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: UUID
        at 
...
Caused by: java.lang.NoSuchFieldError: UUID
        at 
...

The only thing I could find on the internet about it was https://stackoverflow.com/q/76296222/6336728

I use Hibernate 6.2.7, so I downgraded to JPA 3.0.12 and Hibernate 6.1.7.Final.
Now I get a java.util.zip.ZipException: zip END header not found, even though jar xvf archive.war works fine.
Was this page helpful?