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

Bug 336029

Summary: Bundle versions still at 2.2.0
Product: [RT] Virgo Reporter: Glyn Normington <glyn.normington>
Component: runtimeAssignee: Chris Frost <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: unspecified   
Target Milestone: 3.0.0.M01   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 336032    

Description Glyn Normington CLA 2011-02-01 21:55:45 EST
Although build.properties has set the version to 3.0.0, many template.mf and MANIFEST.MF files refer to version 2.2.0. This is noticeable in the kernel, for example. One consequence is that some tests no longer run under Eclipse, e.g. StandardKernelIntegrationTests fails with:


org.osgi.framework.BundleException: Bundle org.eclipse.virgo.kernel.agent.dm 2.2.0 failed to start.
	at org.eclipse.virgo.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:189)
	at org.eclipse.virgo.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:159)
	at org.eclipse.virgo.test.framework.OsgiTestRunner.launchOsgi(OsgiTestRunner.java:145)
	at org.eclipse.virgo.test.framework.OsgiTestRunner.run(OsgiTestRunner.java:79)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.osgi.framework.BundleException: The bundle "org.eclipse.virgo.kernel.agent.dm_2.2.0 [25]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.virgo.kernel.osgi.region; version="[3.0.0,3.1.0)"
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1315)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1299)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:322)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:287)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:279)
	at org.eclipse.virgo.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:187)
	... 9 more
Comment 1 Glyn Normington CLA 2011-02-01 22:04:46 EST
Please look back at the commits that upgraded the version to 2.1.0 to see if there are any other missing changes for the change to 3.0.0. Thanks!
Comment 2 Chris Frost CLA 2011-02-03 05:54:50 EST
All manifests updated but a long term fix is required as this problem will occur again when we move to 4.0.