camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5009) Can't use the resourceClass Parameter of CXF-RS Component
Date Thu, 16 Feb 2012 12:12:59 GMT

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

Willem Jiang resolved CAMEL-5009.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0
                   2.9.1
                   2.8.5

Applied patch into trunk , camel-2.9.x, camel-2.8.x branches.
                
> 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
>             Fix For: 2.8.5, 2.9.1, 2.10.0
>
>
> 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

        

Mime
View raw message