You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2021/09/17 00:57:00 UTC

[jira] [Commented] (CXF-8598) Equal candidates for handling the current request when implementing two APIs

    [ https://issues.apache.org/jira/browse/CXF-8598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416374#comment-17416374 ] 

Andriy Redko commented on CXF-8598:
-----------------------------------

Hi [~as.gutnik] , such warning usually indicates that you have 2 JAX-RS resources which both could handle the same kind of the HTTP request under the same path. Could you please share the details how the base class and 2 APIs look like (@Path / @GET / @Consumes /... annotations) for the operation in question? Thank you.

> Equal candidates for handling the current request when implementing two APIs
> ----------------------------------------------------------------------------
>
>                 Key: CXF-8598
>                 URL: https://issues.apache.org/jira/browse/CXF-8598
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.3.5
>            Reporter: Anastasiya Gutnik
>            Priority: Minor
>
> I have a Spring Boot Application and two APIs with absolutely different methods, but one implementation class for both.
> when I'm adding implementation of the second API I received this error when requesting any of the methods.
> o.a.c.j.m.OperationResourceInfoComparatorBase - Both class#method and class#method are equal candidates for handling the current request which can lead to unpredictable results
> yes both class# method are the same in error, name of the implementation.
> I can't change topology



--
This message was sent by Atlassian Jira
(v8.3.4#803005)