[
https://issues.apache.org/jira/browse/CXF-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry updated CXF-9050:
------------------------
Description:
cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import
instead of javax.
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!_
was:
cxf-rt-rs-service-description-swagger imports jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import
instead of javax.
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!_
> 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: Minor
> 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 javax.
> 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)