Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365868

Summary: [rwt-osgi] Should import org.osgi.service.http with version="[1.2,2.0)"
Product: [RT] RAP Reporter: Peter Kilian <pit.kilian>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fr.appel
Version: 1.5   
Target Milestone: 1.5 M4   
Hardware: PC   
OS: Windows All   
Whiteboard:

Description Peter Kilian CLA 2011-12-07 06:35:43 EST
Starting the RWT-OSGI integration bundle on Apache Karaf result in an error, because the RWT-OSGI integration bundle imports the package org.osgi.service.http with the version range [1.2.1,2.0.0).
Apache Karaf uses Pax Web for this service and Pax Web exports the package org.osgi.service.http with the version 1.2
In the OSGi Service Platform Enterprise Specification,Release 4, Version 4.2" is following example: Import-Package: org.osgi.service.http; version="[1.2,2.0)
Comment 1 RĂ¼diger Herrmann CLA 2011-12-07 06:38:37 EST
To me the version range seems unnecessarily constrained. A quick check with [1.2.0,2.0.0) worked well (with Equinox 3.7).

@Frank: was there a specific reason to have 1.2.1 as the lower version bound or can we use [1.2.0,2.0.0)?
Comment 2 Frank Appel CLA 2011-12-07 07:53:32 EST
(In reply to comment #1)
> To me the version range seems unnecessarily constrained. A quick check with
> [1.2.0,2.0.0) worked well (with Equinox 3.7).
> 
> @Frank: was there a specific reason to have 1.2.1 as the lower version bound or
> can we use [1.2.0,2.0.0)?
If there was any I can't remember it. Probably this was the version of the target I developed against. So if it works it should be fine to use [1.2.0,2.0.0).
Comment 3 RĂ¼diger Herrmann CLA 2011-12-07 08:25:01 EST
Changed as suggested. Will be available in 1.5 M4 and with the next nightly build.