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

Andriy Redko commented on CXF-9050:
-----------------------------------

[~this.romanov] Apache CXF 3.6.x branch uses `javax.*` namespaces (moreover, 
Swagger Core 1.6.x only works with `javax.*`), please check your dependencies.

> Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import
> --------------------------------------------------------------------
>
>                 Key: CXF-9050
>                 URL: https://issues.apache.org/jira/browse/CXF-9050
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.6.4
>            Reporter: Dmitry
>            Priority: Major
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
> But *DefaultApplicationFactory.class* have {*}javax{*}.ws.rs.core.Application 
> import instead of jakarta.
> As a result, an error occurs when 
> org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
> .createServer() method:
> """
> Error creating bean with name 'jaxRsServer' defined in class path resource 
> [org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
> instantiate [org.apache.cxf.endpoint.Server]: *Factory method 'jaxRsServer' 
> threw exception with message: javax/ws/rs/core/Application*
> """
> _Thank Apache team for your work and support!_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to