-
Notifications
You must be signed in to change notification settings - Fork 78
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
Jersey 3.0.3 searches JaxbAnnotationIntrospector instead of new JakartaXmlBindAnnotationIntrospector #153
Comments
We just wanted to upgrade to Jackson 2.13 and ran into the same problem. We want to migrate our web application completely to Jakarta and try to elimiante all old javax Bindings, like JAXB. I assume it's due to the fact, that previously the class name of JaxbAnnotationIntrospector was unchanged in the shaded jakarta-JAR, but now with the new Introspector class name there is no jersey feature to enable it. Is there any way to use the new jackson-module-jakarta-xmlbind-annotations module with jersey, or do we have to downgrade to 2.12 until the jersey team provided a new module like jersey-media-json-jackson for the new package? |
I created a ticket for this in the jersey repository as well, as I assume they need to provide a module for this. |
@metaxmx Yes, I think help from Jersey side is most likely needed -- unfortunately I don't have good contacts on that side of things currently. But I trust they know their stuff and can help & collaborate as necessary. My hope with 2.13 was to provide building blocks needed, but the whole javax/JAXB -> Jakarta transition is, has been and likely will be a royal PITA. Unfortunately. I suspect one issue is that whatever workarounds Jersey team has had to do for this problem (moving to Jakarta) would have been based on Jackson/JAXB providers, since Jackson hasn't had Jakarta alternative until now. So: I am happy to try to help where I can. At this point I am not yet sure what I can do, but having an issue on Jersey side should help. |
This issue was addressed in eclipse-ee4j/jersey#4891, eclipse-ee4j/jersey#4963 and eclipse-ee4j/jersey@62ba351 |
I assume this can now be closed -- please LMK if something is needed from Jackson side and I can re-open. |
For updgrading my (tomact web-) project to newest Jersey 3.0.3 and Jackson 2.13, I replaced the jackson-module-jaxb-annotations-2.12.5-jakarta.jar with jackson-module-jakarta-xmlbind-annotations-2.13.0.jar, see #130 . The program is a webservice answering request and delivers a POJO, whose Code is annotated with JAXB 3.0.2 annotations, in JSON format. I am using the following additional WebApp libs (additionally to tomcat servlet api):
I get the following error stacktrace when starting Tomcat:
Am I missing something? Or does the Jackson provider auto-detection mechanism something wrong? In my code there are no dependencies to com.fasterxml... or similar. Only to JAXB.
OT: If I add additionally add jackson-module-jaxb-annotations-2.12.5-jakarta.jar from the previous Jackson-Version everything is fine.
Thanks,
Chris
The text was updated successfully, but these errors were encountered: