Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2529

@NameBinding not working in JAXRS + Weld + Undertow environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 4.0.0.Beta5, 3.9.3.Final
    • jaxrs
    • None

    Description

      When I try to deploy resteasy + Weld in undertow, I found the @NameBinding does not work. I've created a sample code base to show what I mean here: https://github.com/ligangty/undertow-resteasy

      In this code base, I've mixed the usage of undertow+resteasy+Weld together, and created one resource class SimpleResource with two @GET methods. Then created a NameBinding ContainerResponseFilter and bound one of these two methods with it. IIRC that means this filter should only work for this bound method. But in fact this filter works for all methods now(actually for all resources now, as I've also created a /api/resteasy/registry resource too).

      To start this project, directly run "mvn exec:java"

      Env:
      Undertow: 2.0.1 Final
      Resteasy: 4.0.0.Beta5 (or 3.9.3.Final)
      Weld: 2.4.8.Final

      Attachments

        Activity

          People

            Unassigned Unassigned
            gli2@redhat.com Gang Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: