I was migrating an application from Java 17 and Spring Boot 2.7.5 to Java 21 and Spring Boot 3.3.0. after updating the necessary configurations, the build where this error occurred.
studying this issue, I came to the conclusion that the problem is in the common compress library and tried to fix it using other versions and not only.
but it seems that the problem is still with 3.3.0 spring boot. If you downgrade it to 3.2.5 or 3.2.6, everything works.