Details
-
Enhancement
-
Resolution: Can't Do
-
Major
-
None
-
1.1.1.Final
-
None
Description
Based on WELD-940:
When an interceptor or decorator is defined in beans.xml, but the class is missing, current error message is a bit misleading:
WELD-001417Enabled interceptor class <class>org.jboss.weld.environment.se.jpa.JpaTransactionInterceptor</class> in jar:file:/mnt/ssd1/data/.m2/repository/org/jboss/jawabot/JawaBot-core/2.0.0-SNAPSHOT/JawaBot-core-2.0.0-SNAPSHOT.jar!/META-INF/beans.xml@11 is neither annotated @Interceptor nor registered through a portable extension
at org.jboss.weld.bootstrap.Validator.validateEnabledInterceptorClasses(Validator.java:466)
Maybe we should check whether the class is loaded, and if not, log WARN or ERROR about it.