Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365868 - [rwt-osgi] Should import org.osgi.service.http with version="[1.2,2.0)"
Summary: [rwt-osgi] Should import org.osgi.service.http with version="[1.2,2.0)"
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: 1.5 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 06:35 EST by Peter Kilian CLA
Modified: 2011-12-07 08:25 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.