Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 21 support for swagger-core? #4765

Open
rasikaghadge opened this issue Oct 24, 2024 · 0 comments
Open

Java 21 support for swagger-core? #4765

rasikaghadge opened this issue Oct 24, 2024 · 0 comments

Comments

@rasikaghadge
Copy link

rasikaghadge commented Oct 24, 2024

I updated my application to support java 21. In that, all the javax.servlet.* imports were changed to jakarta. After this, I started seeing this error in swagger:
Failed to load API definition: response status is 500 /aps/openapi/openapi.json

The application logs are showing this error:
org.apache.catalina.core.StandardWrapperValve.invoke Allocate exception for servlet [OpenApi]
java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet

Similarly, I updated my application to use jakarta.xml.bind-api version 4.0.2 (which was 2.3.5 previously)

I found that the latest release of swagger-core currently relies on jakarta.xml.bind-api=2.3.3. Reverting my application back to this dependency version and imports resolves the issue.

However, moving forward, my application requires these changes. Could you let me know if there are plans to provide support for java 21, or if there's an alternative approach that would allow this compatibility?

@rasikaghadge rasikaghadge changed the title Not able to load API definition using jakarta.xml.bind version 4.0.2 Java 21 support for swagger-core? Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant