[
https://issues.apache.org/jira/browse/FELIX-6389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17289027#comment-17289027
]
Miroslav Šulc commented on FELIX-6389:
--------------------------------------
my approach is roughly this (and it's still work in progress, i did not deploy
it yet nor did any testing except successful compilation against the new jar):
# clone [https://github.com/osgi/osgi.git]
# modify org.osgi.service.http subproject so that it uses jakarta.* instead of
javax.* and change version in package-info.java to something different (in my
case 2.0.0)
# replace
licensed/repo/org.osgi.impl.bundle.servlet/org.osgi.impl.bundle.servlet-2.1.1.jar
with tomcat servlet api from tomcat 10 (i do not understand gradle and it's
dependency management so this was the least-effort approach for me, though it's
just a hack)
# compile org.osgi.service.http
that way you'll get file
org.osgi.service.http/generated/org.osgi.service.http.jar containing interfaces
for the http service using jakarta.* namespace.
the rest is maven specific:
# install the artifact locally: mvn install:install-file -DgroupId=org.osgi
-DartifactId=org.osgi.service.http -D packaging=jar -Dversion=2.0.0
-Dfile=org.osgi.service.http/generated/org.osgi.service.http.jar
-DgeneratePom=true
# add dependency on this new artifact to your project *before* osgi.cmpn
dependency (if you add it after osgi.cmpn dependency, java will try to build
your project against HttpService from osgi.cmpn and it will fail)
# now, if you have your project switched to jakarta.* namespace, you should be
able to successfully compile your project against the new osgi jar
this is where i am atm. now i need to update webconsole sources to build
against my new osgi jar so that it grabs the correct http service, deploy it on
tomcat 10, resolve any issues...
> add support for servlet 5.0 (tomcat 10)
> ---------------------------------------
>
> Key: FELIX-6389
> URL: https://issues.apache.org/jira/browse/FELIX-6389
> Project: Felix
> Issue Type: Improvement
> Components: Web Console
> Reporter: Miroslav Šulc
> Priority: Major
>
> because tomcat 10 had to switch the packages from javax.* to jakarta.\*, imo
> webconsole cannot be used on tomcat 10. it uses
> org.osgi.service.http.HttpService from osgi.cmpn 6.0.0 which does not support
> jakarta.\* servlet classes. i was not even able to find osgi.cmpn that would
> have org.osgi.service.http.HttpService with support for jakarta.* servlet
> classes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)