Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 304338 - org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.util.event; version="1.0.0"
Summary: org.osgi.framework.BundleException: The bundle could not be resolved. Reason:...
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 276950 304340 308142 310472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-02 06:07 EST by Philipp Nanz CLA
Modified: 2013-11-10 22:32 EST (History)
12 users (show)

See Also:


Attachments
Sample projects for reproducing this bug (110.81 KB, application/zip)
2010-03-02 06:09 EST, Philipp Nanz CLA
no flags Details
Log file (1.60 KB, application/octet-stream)
2010-03-02 07:00 EST, Philipp Nanz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Nanz CLA 2010-03-02 06:07:34 EST
Build Identifier: I20100129-1300

When exporting a simple feature-based RCP product using the Product Export Wizard, launching the product for the first time will yield an exception in the .log file.

The problem only occurs when the option "Generate metadata repository" is checked.

Note: This bug also affects 3.5.1 and 3.5.2, please see http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg35699.html

Reproducible: Always

Steps to Reproduce:
1. Import the attached projects
2. Run product export wizard on rcp.test/rcp.product
3. Be sure to check "Generate metadata repository"
4. Launch exported RCP app and inspect .log file
Comment 1 Philipp Nanz CLA 2010-03-02 06:09:34 EST
Created attachment 160603 [details]
Sample projects for reproducing this bug
Comment 2 Philipp Nanz CLA 2010-03-02 07:00:58 EST
Created attachment 160607 [details]
Log file
Comment 3 Thomas Watson CLA 2010-03-02 09:42:30 EST
This looks similar to bug 304340
Comment 4 Philipp Nanz CLA 2010-03-02 10:06:52 EST
(In reply to comment #3)
> This looks similar to bug 304340

Indeed, it is the very same error message.

It should be noted though, that in my scenario no DS is used. It's just a very simple RCP plugin being referenced by a feature that in turn refers to the org.eclipse.rcp feature.
Comment 5 Thomas Watson CLA 2010-03-03 10:56:23 EST
This is the same as bug 304340

The config.ini does not seem right in this case.  The generated config.ini has
this ...

osgi.bundles=reference\:file\:org.eclipse.equinox.ds_1.2.0.v20100215.jar@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100123-1019.jar@1\:start


Seems like it should only contain simpleconfigurator and not ds.  If I remove
ds from the osgi.bundles property then it works with no errors.  I also find it
strange that the start-level for ds is being set to 1.  I thought the CU for ds
was to set this to start-level 2?
Comment 6 Thomas Watson CLA 2010-03-03 11:02:14 EST
*** Bug 304340 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Niefer CLA 2010-03-03 11:48:26 EST
Default start levels are generated in build.
The start level of 1 came from the original patch from Chris on bug 260315.  I will change the default to 2 (that is also what the SDK uses).

Work around is to set all your start levels explicitly in the .product file.  (You need to do them all since defaults don't happen if any are set).
Comment 8 Andrew Niefer CLA 2010-03-03 16:07:42 EST
I updated pde/build to set 2 as the default level for ds
Comment 9 Philipp Nanz CLA 2010-03-15 14:59:51 EDT
I'm still seeing this bug as of 3.6 M6 (I20100312-1448)
Comment 10 Philipp Nanz CLA 2010-03-22 09:10:17 EDT
(In reply to comment #9)
> I'm still seeing this bug as of 3.6 M6 (I20100312-1448)

The generated config ini still reads

osgi.bundles=reference\:file\:org.eclipse.equinox.ds_1.2.0.v20100301.jar@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100304.jar@1\:start
Comment 11 Andrew Niefer CLA 2010-03-22 12:18:49 EDT
Sorry, I missed one case.  DS should now be at 2.  Fix is in next IBuild I20100323
Comment 12 Thomas Watson CLA 2010-04-06 09:50:11 EDT
*** Bug 308142 has been marked as a duplicate of this bug. ***
Comment 13 Filip Hrbek CLA 2010-04-26 16:07:03 EDT
*** Bug 310472 has been marked as a duplicate of this bug. ***
Comment 14 Curtis Windatt CLA 2010-04-29 11:01:38 EDT
*** Bug 276950 has been marked as a duplicate of this bug. ***
Comment 15 Kenneth Evans, Jr. CLA 2010-05-04 16:13:31 EDT
The documentation for 3.5.1 (Build id: M20090917-0800), topic "Configuring p2 Products" says the Start Level should be 1 (how I happened to be using 1 and hence getting the bug).  This is just a note to ask you to check that the documentation has been changed as well as the implementation.

Thanks.