bytedeco/javacv

Not compatible with spring on MacBook

Open

#1 710 ouverte le 19 oct. 2021

Voir sur GitHub
 (14 commentaires) (0 réactions) (0 assignés)Java (6 985 stars) (1 583 forks)batch import
help wantedquestion

Description

I initialize a spring boot project with spring initializer, it works fine; Then I add javacv dependency to it, it failed with the following message.

But the above code javacv works fine with spring on Windows and Linux, you can test it yourself

2021-10-19 16:32:18.068  WARN 95163 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1794) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]
	.....

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager

......

I'll paste my pom file and full error message in the comment below.

Guide contributeur