-
Notifications
You must be signed in to change notification settings - Fork 183
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
Need to upgrade Jakarta.servlet-api to latest version (6.x) but pax-web-features uses older version #1965
Comments
Because of the biggest mistake in Java ecosystem, one does not simply upgrade from Servlet API 4 to Servlet API 6. One also needs to change the Servlet API implementation and all his/her code. You can't for example just change Servlet API without changing Spring 5 to 6. Or if you're stuck with old JSF implementation... Pax Web is a victim of politics too, but unfortunately wheels of OSGi gind slow but (probably) grind fine. There's no Pax Web implementation of new OSGi specifications based on
Only the Whiteboard one was upgraded to new Servlet API. There's a new https://github.com/ops4j/org.ops4j.pax.web/commits/main-jakarta/ branch where I work on Pax Web 10 in my spare time, but you know - it depends on the spare time aspect... So please be patient here... In the meantime you have Felix HTTP which is based on Jetty and doesn't (afaik) implement the WABs, but it works with new Servlet API. |
We are using Karaf- 4.4.6 version in our project..While installing pax-web-features (9.0.16), it introduces dependency on Jakarta.servlet-api : 4.0.4.
mvn:jakarta.servlet/jakarta.servlet-api/4.0.4
We use 6.x version of Jakarta.servlet-api in the project which creates a conflict causing the following error.
org.ops4j.pax.web.pax-web-jetty [org.ops4j.pax.web.pax-web-jetty [71](R 71.0)] because it is exposed to package 'javax.servlet' from resources jakarta.servlet-api [jakarta.servlet-api [24](R 24.0)] and jakarta.servlet-api [jakarta.servlet-api [116](R 116.0)] via two dependency chains.
Please suggest a way to get around this error? Is there plans of upgrading jakarta.servlet-api in next karat version?
The text was updated successfully, but these errors were encountered: