You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 jakarta.servlet API. Also because out of 3 web specifications:
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: