Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-944

Improve error message for missing class of interceptor or decorator.

    XMLWordPrintable

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-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@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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: