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

Bug 357273

Summary: Upgrading Spring Framework to version 3.1.0.M2 causes startup failure
Product: [RT] Virgo Reporter: Matthew Adams <matthew>
Component: runtimeAssignee: Chris Frost <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse, glyn.normington, hsiliev, roland.hauser
Version: 3.0.0.RELEASE   
Target Milestone: 3.5.0.M01   
Hardware: PC   
OS: Windows 7   
URL: http://www.eclipse.org/forums/index.php/t/239290/
Whiteboard:
Bug Depends on:    
Bug Blocks: 351868    
Attachments:
Description Flags
serviceability/logs/log.log of described startup failure none

Description Matthew Adams CLA 2011-09-09 14:34:40 EDT
Build Identifier: 3.0.0.RELEASE

Follow FAQ steps at
http://wiki.eclipse.org/Virgo/FAQ#How_can_I_change_the_version_of_Spring_framework_in_the_user_region.3F
for upgrading to Spring Framework 3.1.0.M2, start virgo clean and observe startup failure due to unresolved constraints:

===== Begin Console Output =====

[2011-09-09 13:31:42.304] startup-tracker              <KE0001I> Kernel starting.
[2011-09-09 13:31:44.618] startup-tracker              <KE0002I> Kernel started.
[2011-09-09 13:31:44.854] system-artifacts             <DE0000I> Installing plan 'org.eclipse.virgo.kernel.userregion.springdm' version '3.0.0'.
[2011-09-09 13:31:46.117] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.core' version '1.2.1'.
[2011-09-09 13:31:46.488] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.extender' version '1.2.1'.
[2011-09-09 13:31:46.592] system-artifacts             <DE0000I> Installing bundle 'org.springframework.osgi.io' version '1.2.1'.
[2011-09-09 13:31:46.677] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.agent.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:31:46.720] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.deployer.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:31:47.047] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.equinox.ds' version '1.3.0.v20110124-0830'.
[2011-09-09 13:31:47.308] system-artifacts             <DE0000I> Installing bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'.
[2011-09-09 13:31:47.319] system-artifacts             <DE0000I> Installing configuration 'osgi.console.telnet' version '0.0.0'.
[2011-09-09 13:31:47.329] system-artifacts             <DE0000I> Installing configuration 'osgi.console.ssh' version '0.0.0'.
[2011-09-09 13:31:49.262] system-artifacts             <ME0003I> Dump 'serviceability\dump\2011-09-09-13-31-293' generated
[2011-09-09 13:31:49.270] system-artifacts             <DE0002E> Installation of plan 'org.eclipse.virgo.kernel.userregion.springdm' version '3.0.0' failed. org.eclipse.virgo.kernel.osgi.framewor
k.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'org.eclipse.virgo.kernel.agent.dm' at version '3.0.0.RELEASE': Cannot resolve: org.eclipse.virgo.kernel.age
nt.dm
    Resolver report:
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.agent.dm_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.core.task; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.deployer.dm_3.0.0.RELEASE>
             constraint: <Import-Package: org.eclipse.virgo.kernel.agent.dm; version="[3.0.0,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.springframework.web_3.1.0.M2>
             constraint: <Import-Package: org.apache.http; version="[4.1.0,5.0.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.beans.factory.support; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.instrument.classloading; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export.annotation; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.eclipse.virgo.kernel.agent.dm; version="[3.0.0,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.beans.factory.support; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.instrument.classloading; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export.annotation; version="[2.5.6,3.1.0)">

        at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45)
        at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
        at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72)
        at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
        at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
        at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:285)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:164)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:136)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:203)
        at org.eclipse.virgo.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.deployArtifacts(InitialArtifactDeployer.java:156)
        at org.eclipse.virgo.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.run(InitialArtifactDeployer.java:146)
        at java.lang.Thread.run(Thread.java:662)

[2011-09-09 13:31:49.279] system-artifacts             <DE0003E> Install failed for bundle 'org.springframework.osgi.core' version '1.2.1'.
[2011-09-09 13:31:49.281] system-artifacts             <DE0003E> Install failed for bundle 'org.springframework.osgi.extender' version '1.2.1'.
[2011-09-09 13:31:49.283] system-artifacts             <DE0003E> Install failed for bundle 'org.springframework.osgi.io' version '1.2.1'.
[2011-09-09 13:31:49.285] system-artifacts             <DE0003E> Install failed for bundle 'org.eclipse.virgo.kernel.agent.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:31:49.286] system-artifacts             <DE0003E> Install failed for bundle 'org.eclipse.virgo.kernel.deployer.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:31:49.288] system-artifacts             <DE0003E> Install failed for bundle 'org.eclipse.equinox.ds' version '1.3.0.v20110124-0830'.
[2011-09-09 13:31:49.290] system-artifacts             <DE0003E> Install failed for bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'.
[2011-09-09 13:31:49.292] system-artifacts             <DE0003E> Install failed for configuration 'osgi.console.telnet' version '0.0.0'.
[2011-09-09 13:31:49.293] system-artifacts             <DE0003E> Install failed for configuration 'osgi.console.ssh' version '0.0.0'.
[2011-09-09 13:31:49.296] system-artifacts             <DE0003E> Install failed for plan 'org.eclipse.virgo.kernel.userregion.springdm' version '3.0.0'.
[2011-09-09 13:31:49.299] system-artifacts             <DE0500E> Unable to install application from URI 'file:/C:/vj/repository/ext-spring-3.1.0.M2/org.eclipse.virgo.kernel.userregion.springdm.pl
an'. Cannot satisfy constraints for bundle 'org.eclipse.virgo.kernel.agent.dm' version '3.0.0.RELEASE'. Cannot resolve: org.eclipse.virgo.kernel.agent.dm
    Resolver report:
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.agent.dm_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.core.task; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.deployer.dm_3.0.0.RELEASE>
             constraint: <Import-Package: org.eclipse.virgo.kernel.agent.dm; version="[3.0.0,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.springframework.web_3.1.0.M2>
             constraint: <Import-Package: org.apache.http; version="[4.1.0,5.0.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.beans.factory.support; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.instrument.classloading; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export.annotation; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.eclipse.virgo.kernel.agent.dm; version="[3.0.0,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.beans.factory.support; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.instrument.classloading; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export.annotation; version="[2.5.6,3.1.0)">
. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'org.eclipse.virgo.kernel.agent.dm' at version '3.0.0.RELEASE': Cann
ot resolve: org.eclipse.virgo.kernel.agent.dm
    Resolver report:
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.agent.dm_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.core.task; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.deployer.dm_3.0.0.RELEASE>
             constraint: <Import-Package: org.eclipse.virgo.kernel.agent.dm; version="[3.0.0,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.springframework.web_3.1.0.M2>
             constraint: <Import-Package: org.apache.http; version="[4.1.0,5.0.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.beans.factory.support; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.instrument.classloading; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export.annotation; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.eclipse.virgo.kernel.agent.dm; version="[3.0.0,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.beans.factory.support; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.instrument.classloading; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export; version="[2.5.6,3.1.0)">
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.eclipse.virgo.kernel.dmfragment_3.0.0.RELEASE>
             constraint: <Import-Package: org.springframework.jmx.export.annotation; version="[2.5.6,3.1.0)">

        at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45)
        at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
        at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72)
        at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
        at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
        at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:285)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:164)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:136)
        at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:203)
        at org.eclipse.virgo.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.deployArtifacts(InitialArtifactDeployer.java:156)
        at org.eclipse.virgo.kernel.userregion.internal.InitialArtifactDeployer$ArtifactDeployingRunnable.run(InitialArtifactDeployer.java:146)
        at java.lang.Thread.run(Thread.java:662)

[2011-09-09 13:31:49.408] system-artifacts             <UR0002E> User region failed while deploying initial artifacts. Shutting down.
[2011-09-09 13:31:49.533] System Bundle Shutdown       <KE0010I> Shutdown initiated.

===== End Console Output =====

Reproducible: Always

Steps to Reproduce:
Follow FAQ steps at
http://wiki.eclipse.org/Virgo/FAQ#How_can_I_change_the_version_of_Spring_framework_in_the_user_region.3F
for upgrading to Spring Framework 3.1.0.M2, start virgo clean and observe startup failure due to unresolved constraints.
Comment 1 Matthew Adams CLA 2011-09-09 14:35:48 EDT
Created attachment 203084 [details]
serviceability/logs/log.log of described startup failure

serviceability/logs/log.log of described startup failure
Comment 2 Hristo Iliev CLA 2011-09-09 15:42:01 EDT
*** Bug 355490 has been marked as a duplicate of this bug. ***
Comment 3 Hristo Iliev CLA 2011-09-09 15:43:47 EDT
The range should probably be changed to include 3.1.x if it works ok with Virgo.

We can keep 2.5.6 so Virgo Jetty can still work.
Comment 4 Chris Frost CLA 2011-10-11 11:27:45 EDT
Fixed, all deps on Spring framework should now be at (2.5.6,+1].
Comment 5 Glyn Normington CLA 2012-01-16 03:59:44 EST
This is fixed in the Virgo 3.5 line.
Comment 6 Glyn Normington CLA 2012-01-16 04:04:36 EST
Marking as an enhancement to clarify that the reported version 3.0.0.RELEASE is working as designed.
Comment 7 Glyn Normington CLA 2012-01-16 04:08:16 EST
*** Bug 368603 has been marked as a duplicate of this bug. ***