glassfish
  1. glassfish
  2. GLASSFISH-19262

Deployment failure: Duplicate interceptor class definition when binding <interceptor-class-name> on AROUND_INVOKE

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 4.0
    • Component/s: cdi
    • Labels:
      None
    • Environment:

      GlassFish Server Open Source Edition 3.1.2.2 (build 5)
      org.jboss.weld.Version=WELD-000900 1.1.8 (Final)

      Description

      Following bean forces a deployment error in glassfish, if the ejb module containing this bean uses cdi (and therefore has a META-INF/beans.xml)

      @Stateless
      @Interceptors(

      {Interceptor1.class, Interceptor2.class}

      )
      public class MyStatelessSessionBean {

      public void doSomething1() {
      }

      public void doSomething2() {
      }

      @ExcludeClassInterceptors
      @Interceptors(

      {Interceptor1.class}

      )
      public void doSomething3() {

      }
      }

      The server.log shows following errors:

      [#|2012-10-30T16:43:31.128+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=121;_ThreadName=Thread-2;|Exception while loading the app|#]

      [#|2012-10-30T16:43:31.133+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=121;_ThreadName=Thread-2;|Exception while loading the app : Duplicate interceptor class definition when binding com.tests.interceptors.Interceptor1 on AROUND_INVOKE
      org.jboss.weld.interceptor.proxy.InterceptorException: Duplicate interceptor class definition when binding com.tests.interceptors.Interceptor1 on AROUND_INVOKE

      If the the ejb-module has no beans.xml, the deployment is successful.

      The attachment contains a maven project for reproducing the error.

        Activity

          People

          • Assignee:
            jjsnyder83
            Reporter:
            tweier
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: