-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Add support for Jakarta EE #1284
Comments
Thank you for your proposal. I think the straightforward solution, is to have separate dependencies: one dedicated for jakarta support and another one for javax. Don't hesitate to propose a PR, if you have any solutions in mind. This feature, should anyway be supported and will be added for the next springdoc major release. |
1st milestone of Spring Boot 3 with support for Jakarta EE 9 is available. |
just found this issue after upgrading to Spring Boot 3.0 M1 .. SpringDoc Version is 1.6.4
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest |
Hi @goafabric, The support has been added in This is the link for the demos code: If you want to give it a try, this is a first version of the documentation updated here: And this is the migration steps: Note: Please feel free to use and test the latest SNAPSHOT: <dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency> Don't hesitate to provide your comments in this ticket. |
@bnasslahsen Will you release milestones until Spring Boot 3 goes GA or do we have to use snapshots until then? |
Ofc we will release milestones until then. We will try to stick to spring-boot ones. Don't hesitate, to give it a try and share your comments. |
I just upgraded using |
@bnasslahsen |
FYI, springdoc-openapi |
Thank you @bnasslahsen |
Thank you so much!!! |
Thank @bnasslahsen for your efforts! I'm experiencing |
Hi there, I'm experiencing this same issue. Here is the exception: Caused by: java.lang.ClassNotFoundException: javax.validation.constraints.Min
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 120 common frames omitted This is something quite needed for one of the modules I'm working on. When do you reckon a release will be available to use? |
If you look at the link above, you'll see what is happening. It seems like springdoc is still using the old javax validations and is not providing support to jakarta yet. |
Please:
And then, if you still have any comment, make sure you provide a Minimal, Reproducible Example - with HelloController that reproduces the problem. |
Is there any way to convince springdoc to still use javax annotations? I would like to avoid the extra dependency but it decides to try to use |
|
@bnasslahsen already support for native images in boot 3.0 ? because last time i tried i could not get it working thank u |
The native support is added to the v2.0.0-M7-SNAPSHOT, which now fully supports spring-boot For the OpenAPI REST endpoints, you just need to build your application with the spring |
@bnasslahsen |
With a more complex project with jpa I get the error below. ---fix --- -- error -- |
Good hint! |
@bnasslahsen it also needs additional hints .. but then it works again: hints.reflection().registerType(java.lang.Module.class, MemberCategory.INVOKE_DECLARED_METHODS); |
Is there a version of springdoc-openapi-webmvc-core somewhere that supports this change? |
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webConversionServiceProvider' defined in class path resource [org/springdoc/core/configuration/SpringDocConfiguration$WebConversionServiceConfiguration.class]: Failed to instantiate [org.springdoc.core.providers.WebConversionServiceProvider]: Factory method 'webConversionServiceProvider' threw exception with message: class org.springframework.boot.autoconfigure.web.format.WebConversionService cannot be cast to class java.util.List (org.springframework.boot.autoconfigure.web.format.WebConversionService is in unnamed module of loader 'app'; java.util.List is in module java.base of loader 'bootstrap') I get the error like this |
Make sure you read the Contribution guidelines As mentionned, in the guidelines above, if you feel you are facing an issue, make sure you provide a Minimal, Reproducible Example - with HelloController that reproduces the problem. |
The springdoc-openapi v2 has been released as spring-boot v3 is now GA. |
Is your feature request related to a problem? Please describe.
When using springdoc-openapi-ui, one gets a dependency to the old javax-apis through the version of swagger-core that is included (via springdoc-common).
Describe the solution you'd like
It seems swagger has solved this by publishing separate artifacts suffixed with jakarta (See swagger-api/swagger-core#3881). It would be nice if one could do the same with springdoc, or if possible solve it in some other way, so as not have to manually exclude the javax-swagger-versions and include the jakarta-swagger versions a la
I'm not well enough versed in all the possibilities of configuring dependencies in maven to come up with the best solution to this, but it would be nice if it could be solved somehow, as jakarta.* is where the development will continue.
The text was updated successfully, but these errors were encountered: