Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5009

Can't use the resourceClass Parameter of CXF-RS Component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.5, 2.9.1, 2.10.0
    • camel-cxf
    • None
    • All Camel environments.

    • Unknown

    Description

      When I use the resourceClass parameter as described in the docs, I get an unexpected error:

      import javax.ws.rs.Path;
      import javax.ws.rs.PathParam;

      @Path("/sample/")
      public final class SampleResource {

      @Path("/

      {param1}

      /

      {param2}

      ")
      public Object sampleOperation(@PathParam("param1") final String param1, @PathParam("param2") final String param2)

      { return null; }

      }

      import org.apache.camel.builder.RouteBuilder;

      public final class SampleRouteBuilder extends RouteBuilder {

      @Override
      public void configure()

      { from("cxfrs:http://0.0.0.0:8080?resourceClass=SampleResource")... }

      }

      The workaround has been using the resourceClasses parameter instead.

      Attachments

        Activity

          People

            njiang Willem Jiang
            fribeiro Fernando Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: