[ 
https://issues.apache.org/jira/browse/FELIX-6497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495344#comment-17495344
 ] 

Rakesh Kumar commented on FELIX-6497:
-------------------------------------

actually I am using Felix in bridge mode and exporting the version 3.1 and 4.0 
from framework like this.
{code:java}
org.osgi.framework.system.packages.extra= \
  javax.servlet; \
  javax.servlet.http; \
  javax.servlet.descriptor; \
  javax.servlet.annotation;version="3.1.0", \
  \
  javax.servlet; \
  javax.servlet.http; \
  javax.servlet.descriptor; \
  javax.servlet.annotation;version="4.0.0", \
  \{code}
This works well as the servlet api range specified in WebConsole and its 
plugins is something like this *version="[2.x,4)"* and it is satisfied by *v3.1*

v4 will not be considered using this range therefore I thought to have *v5* so 
that *v4* can satisfy the package import.

I'll remove v3.1 and only export the v4 from framework.

And regarding updating the maven dependency, as we know it is still backward 
compatible so I think we can safely use the latest coordinates.
{code:java}
 <dependency>
    <groupId>jakarta.servlet</groupId>
    <artifactId>jakarta.servlet-api</artifactId>
    <version>4.0.4</version>
    <scope>provided</scope>
</dependency> {code}
Here is the other ticket you asked me to create - 
https://issues.apache.org/jira/browse/FELIX-6508

> Export Servlet API 4.0
> ----------------------
>
>                 Key: FELIX-6497
>                 URL: https://issues.apache.org/jira/browse/FELIX-6497
>             Project: Felix
>          Issue Type: Improvement
>          Components: HTTP Service
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: http.servlet-api-1.2.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to