-
Enhancement
-
Resolution: Done
-
Minor
-
2.1.0.Final
-
None
When a bean archive is set to bean-discovery-mode="annotated" and an @Interceptor does not have @Dependent, the error message is very misleading (and incorrect): WELD-001417: Enabled interceptor class <class>nl.topicus.digdag.bean.rest.RequestClosingInterceptor</class> in vfs:/home/papegaaij/wildfly-8.0.0.Beta2-SNAPSHOT/standalone/deployments/digdag-authenticator.war/WEB-INF/lib/digdag-common-1.2-SNAPSHOT.jar/META-INF/beans.xml@6 is neither annotated @Interceptor nor registered through a portable extension
The class does have the @Interceptor annotation, but is not loaded as a bean, due to the missing @Dependent annotation. I'd expect WELD to report that the class does not have @Dependent. Perhaps WELD can check if the class is available and actually check the annotations and report accordingly?
- is related to
-
CDI-404 adding bean-defining annotations for Interceptor while setting bean-discovery-mode="annotated"
- Closed