issue: java.lang.NoClassDefFoundError: javax/el/ELManager

Eiffelzero發表於2024-06-14

問題描述:


Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager

解決:

https://github.com/bfchengnuo/MyRecord/blob/master/FixException/NoClassDefFoundError-javax.el.ELManager錯誤.md
org.hibernate:hibernate-validator版本太高了,tomcat7沒有這個包

1.要麼升級tomcat
2.要麼降級hibernate-validator 這個包

相關文章