I have a server side OSGi application, running in an equinox container. This application uses the org.apache.felix.webconsole (4.6.2) and other bundles. These other bundles need javax.http > 4.0.0 which I provide with the jakarta.servlet-api (4.0.0). org.apache.felix.webconsole needs javax.servlet=[2.4.0,4.0.0) which I provide with the bundle javax.servlet-api (3.1.0).
When I start the application, the OSGi runtime complains with the a BundleException:
Could not resolve module: org.apache.felix.webconsole / Unresolved requirement: Import-Package: javax.servlet; version="[2.4.0,4.0.0)"
What can I do to fix this problem?