glassfish
  1. glassfish
  2. GLASSFISH-15119

CDI Interceptor still not working in OSGi

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1_b31
    • Fix Version/s: future release
    • Component/s: cdi, OSGi-JavaEE
    • Labels:
      None
    • Environment:

      Tested with promoted b32

      Description

      I just revisited GLASSFISH-13513 and GLASSFISH-14831 to see if it is possible to plug in interceptors the CDI way around EJBs.

      Indeed when deploying a prepared package as non-OSGi the interceptor gets invoked but not when using OSGi deployment.

      Therefore I made up another test case which should be sufficient for a confirmation of this issue:

      • maven reactor build with 4 modules
      • build.sh script for test:
      • "mvn clean install"
      • copy resulting artifacts into .../autodeploy/bundles/ folder of a running glassfish domain
      • wait for (re-)deployment
      • using "curl" to call the web service
      • search for a fault inside the returned XML

      So basically for a test I issue a command like this:

      $ GF_DOMAIN_DIR=/srv/servers/gf-3.1-b32/glassfish/domains/domain1/ ./build.sh

      Well, I also can say that with the old @Interceptors(

      {SecurityInterceptor.class}

      ) method the interceptor is being called so I suspect it is not injected at all.

      This test throws a fault if the interceptor is being invoked. If no fault occurs and the response is valid there must be something wrong.

      1. interceptor-osgi-test.tar.bz2
        6 kB
        Sivakumar Thyagarajan
      2. interceptor-osgi-test-2.tar.gz
        8 kB
        chaoslayer
      3. interceptor-osgi-test-2-fixed.tar.gz
        8 kB
        chaoslayer

        Issue Links

          Activity

          chaoslayer created issue -
          Sanjeeb Sahoo made changes -
          Field Original Value New Value
          Link This issue duplicates GLASSFISH-14831 [ GLASSFISH-14831 ]
          Sanjeeb Sahoo made changes -
          Comment [ Just reopened issue 14831, as I still see it failing with latest code. This has to be a duplicate of that bug. ]
          Sanjeeb Sahoo made changes -
          Component/s cdi [ 10637 ]
          Component/s OSGi-JavaEE [ 10642 ]
          Sanjeeb Sahoo made changes -
          Assignee Sanjeeb Sahoo [ ss141213 ] Sivakumar Thyagarajan [ sivakumart ]
          chaoslayer made changes -
          Sanjeeb Sahoo made changes -
          Link This issue duplicates GLASSFISH-14831 [ GLASSFISH-14831 ]
          Sanjeeb Sahoo made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          Sivakumar Thyagarajan made changes -
          Attachment interceptor-osgi-test.tar.bz2 [ 23947 ]
          Sivakumar Thyagarajan made changes -
          Link This issue depends on GLASSFISH-15249 [ GLASSFISH-15249 ]
          Sivakumar Thyagarajan made changes -
          Fix Version/s 3.2 [ 10969 ]
          Tags 3_1-exclude
          Sivakumar Thyagarajan made changes -
          Tags 3_1-exclude 3_1-exclude 3_1-next
          Sivakumar Thyagarajan made changes -
          Tags 3_1-exclude 3_1-next 3_1-exclude 3_1-next 3_1_1-scrubbed
          Sivakumar Thyagarajan made changes -
          Priority Critical [ 2 ] Major [ 3 ]
          Jill Sato made changes -
          Fix Version/s 4.0 [ 10970 ]
          Fix Version/s 3.2 [ 10969 ]
          Sivakumar Thyagarajan made changes -
          Fix Version/s future release [ 11148 ]
          Fix Version/s 4.0 [ 10970 ]
          Sanjeeb Sahoo made changes -
          Component/s OSGi-JavaEE [ 10642 ]
          jjsnyder83 made changes -
          Fix Version/s 4.0 [ 10970 ]
          Fix Version/s future release [ 11148 ]
          tlcksnyder made changes -
          Assignee Sivakumar Thyagarajan [ sivakumart ] mtaube [ mtaube ]
          TangYong made changes -
          Fix Version/s future release [ 11148 ]
          Fix Version/s 4.0 [ 10970 ]

            People

            • Assignee:
              mtaube
              Reporter:
              chaoslayer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: