Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9050

Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.6.4
    • None
    • JAX-RS
    • None
    • Unknown

    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 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!

      Attachments

        Activity

          People

            Unassigned Unassigned
            this.romanov Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified