You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Fernando Ribeiro (Created) (JIRA)" <ji...@apache.org> on 2012/02/15 14:55:03 UTC

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

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

        

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

Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Fernando Ribeiro (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209487#comment-13209487 ] 

Fernando Ribeiro commented on CAMEL-5009:
-----------------------------------------

Thanks, Willem, I will keep the wiki updated accordingly.
                
> 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

        

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

Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
     [ 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