[weld-issues] [JBoss JIRA] Created: (WELD-944) Improve error message for missing interceptor's class.

Ondrej Zizka (JIRA) jira-events at lists.jboss.org
Mon Jul 18 10:00:24 EDT 2011


Improve error message for missing interceptor's class.
------------------------------------------------------

                 Key: WELD-944
                 URL: https://issues.jboss.org/browse/WELD-944
             Project: Weld
          Issue Type: Enhancement
            Reporter: Ondrej Zizka


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:

{quote}
WELD-001417 Enabled 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 at 11 is neither annotated @Interceptor nor registered through a portable extension
        at org.jboss.weld.bootstrap.Validator.validateEnabledInterceptorClasses(Validator.java:466)
{quote}

Maybe we should check whether the class is loaded, and if not, log WARN or ERROR about it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list