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
module-info.java references legacy javax.ws.rs.api #114
Comments
@triceo I am not an expert of, or even user of (at this point) of module system, so attempts at module info addition are bit of "best effort". Any flaws are accidental and due to inexperience. :) But as to question: no, intent is not to rely on legacy EE APIs. All we need is JAX-RS API. Since |
Just found this issue while moving from 2.9.9 to 2.10.0 in a module based application. Looking at the pom.xml it shows a dependency:
I think because this is an old version it gets an automatic module name 'javax.ws.rs.api'. Can I suggest updating this to 2.1.1 which has a module name of 'java.ws.rs' that is compatible with the jakarta version. I don't think 2.10.0 will be able to be used with anything that is using the 'java.ws.rs' module name until this is resolved. |
@oobles Spot on, thanks! |
Yes, I can make the change as long as someone else can verify it (just because I still work mostly in Java 8 environment). Seems like reasonable update so I have no specific concerns. @GedMarc WDYT? |
@cowtowncoder If there's nightly builds somewhere, I can grab them and plug them into my modular application. |
Phew, thank goodness I came across this a while ago, So this particular one (jax rs) will actually have 3 names. Of which only one will be "The Module" and not the reservation automatic module name (which does not support jlink)
The below module info declaration will enable backwards support and future support
If you are using a modular JAXB - you will need --add-opens java.ws.rs/javax.ws.rs.core=java.xml.bind as automatic module names are not modules and don't specify opens bla bla bla... FYI Current status - Only have antlr (for hibernate) left to do. Working closely with the apache guys to get the damn commons libraries pulled in and released.
If you want any of these artifacts or collections (source bla bla bla) just ask, yes I'm using these for the JRE 11 tests on jaxb, hibernate, rs, and the rest etc... |
@triceo For nightly builds that run directly off a branch in github a great option is jitpack, You could reference e.g. the pull request by including the following in your build https://jitpack.io/#GedMarc/jackson-jaxrs-providers/2.2-SNAPSHOT
|
Quick note here: Jackson So, with that, @GedMarc do you think change to |
Fix #114: change JAX-RS module dep to static
Merged PR #116, and also updated compile dependency as suggested. Changes will affect 2.10.1. |
@oobles You're a life-saver. I just spent about 4 hours trying to figure this out! Thanks. |
I'm using 2.10.0-pr1 in a modular environment. In order to do that successfully, I have to have my module
require com.fasterxml.jackson.jaxrs.json
. Immediately after I do that, my application refuses to start due to modulejavax.ws.rs.api
missing. This is not surprising, as my project is converted to use the new Jakarta APIs. And in those, the new module name isjava.ws.rs
.However, this begs two questions:
javax.ws.rs.api
module should be coming from.At the very least, I think that this is a bug in release notes which mention modularization, but do not point the user to any sort of solution to this modularization problem.
The text was updated successfully, but these errors were encountered: