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

                 Key: CAMEL-5009
                 URL: https://issues.apache.org/jira/browse/CAMEL-5009
             Project: Camel
          Issue Type: Bug
          Components: camel-cxf
    Affects Versions: 2.8.0
         Environment: All Camel environments.
            Reporter: Fernando Ribeiro


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to