Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6221

CDI integration extension does not detect annotations on Karaf

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      I am trying to use portable extension to get working CDI 1.2 and CXF 3.0.2 on Apache Karaf. I wrapped it into OSGi bundle. I installed to my container also:

      • weld 2.1.1
      • pax-cdi-1.2
      • pax-cdi-1.2-web
      • pax-cdi-web-weld

      My JAXRS resources are not found by extension because some line from class *JAXRSCdiResourceExtension* returns false even annotated element contains proper annotation but as a proxy (see attachment image / screenshot from debugger).

              if (event.getAnnotated().isAnnotationPresent(ApplicationPath.class)) {
      

      It would be nice, to tell me how to get it working. I also tested CDI-1.1. Same situation.

      Attachments

        1. screenshot-1.png
          65 kB
          Krystian Panek
        2. hydra.tar.gz
          2.55 MB
          Krystian Panek
        3. module-jax-rs.zip
          25 kB
          Andriy Redko
        4. appcia-hydra-fcf9ff603e4a.zip
          134 kB
          Krystian Panek
        5. adm-with-webxml.zip
          81 kB
          Andriy Redko

        Activity

          People

            reta Andriy Redko
            ciapunek Krystian Panek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: