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

Registering an interceptor in beans.xml from a Jar;

    XMLWordPrintable

Details

    • Hide

      Create a project myLib with an interceptor registered in /meta-inf/beans.xml and pack this as myLib.jar;

      Create an Web app and add myLib.jar to the lib directory... see why the interceptor works in WELD-SE but not in WELD-Servelt

      Show
      Create a project myLib with an interceptor registered in /meta-inf/beans.xml and pack this as myLib.jar; Create an Web app and add myLib.jar to the lib directory... see why the interceptor works in WELD-SE but not in WELD-Servelt

    Description

      I have a jar with an Interception class registered in META/INF/beans.xml;

      My web app has this jar into classpath, but when I deploy some problems show up.

      1 - Registering the interceptor inside the JAR/META-INF/beans.xml: notthing happend and the interceptor is not registered

      2 - Registering the interceptor in WEB-INF/META-INF/beans.xml: throws an exception (org.jboss.weld.exceptions.DeploymentException: WELD-001416 Enabled interceptor class [<class>br.gov.frameworkdemoiselle.internal.interceptor.TransactionInterceptor</class>)

      I believe that the best way is to merge all beans.xml and give a way of programmatically resolve any conflict;

      P.S: It works for Weld-se but not to Weld-servlet!

      Attachments

        Activity

          People

            Unassigned Unassigned
            robsonximenes_jira Robson Ximenes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: