You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org> on 2012/02/16 02:45:00 UTC

[jira] [Assigned] (CAMEL-5009) Can't use the resourceClass Parameter of CXF-RS Component

     [ https://issues.apache.org/jira/browse/CAMEL-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-5009:
-----------------------------------

    Assignee: Willem Jiang
    
> 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
>            Assignee: Willem Jiang
>
> 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