Home » Eclipse Projects » Virgo » Virgo w/Spring 3.1.0.M2
Virgo w/Spring 3.1.0.M2 [message #723842] |
Fri, 09 September 2011 12:26  |
Eclipse User |
|
|
|
I'm trying to use Spring 3.1.0.M2 with Virgo Jetty 3.0.0.RELEASE, following the instructions described in the Virgo FAQ How_can_I_change_the_version_of_Spring_framework_in_the_user_region
and I'm getting errors in the virgo kernel at startup:
[2011-09-09 10:51:40.583] 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.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.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)">
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)">
The problem appears to be pretty clear: bundle org.eclipse.virgo.kernel.agent.dm_3.0.0.RELEASE specifies Spring up to but not including 3.1.0, and 3.1.0.M2 is clearly greater than 3.1.0.
The FAQ above states "Virgo 3.0.x can use Spring framework 3.0 or greater." Is that not true, then? I was also surprised that just because my application uses Spring 3.1.0.M2, why should the Virgo kernel? I thought the user region is separate from the kernel region?
How can I leave the kernel region at Spring 3.0.5.RELEASE yet use 3.1.0.M2 in my application?
Thanks,
Matthew
|
|
|
Re: Virgo w/Spring 3.1.0.M2 [message #723877 is a reply to message #723842] |
Fri, 09 September 2011 14:43   |
Eclipse User |
|
|
|
After noticing the line
<Import-Package: org.apache.http.client; version="[4.1.0,5.0.0)">
in the error log, I added Apache HttpComponents 4.1.3 (org.apache.httpcomponents.httpcore_4.1.3.jar) to repository/ext and reran with the following results:
[2011-09-09 13:40:24.296] startup-tracker <KE0001I> Kernel starting.
[2011-09-09 13:40:26.474] startup-tracker <KE0002I> Kernel started.
[2011-09-09 13:40:26.687] system-artifacts <DE0000I> Installing plan 'org.eclipse.virgo.kernel.userregion.springdm' version '3.0.0'.
[2011-09-09 13:40:27.938] system-artifacts <DE0000I> Installing bundle 'org.springframework.osgi.core' version '1.2.1'.
[2011-09-09 13:40:28.303] system-artifacts <DE0000I> Installing bundle 'org.springframework.osgi.extender' version '1.2.1'.
[2011-09-09 13:40:28.403] system-artifacts <DE0000I> Installing bundle 'org.springframework.osgi.io' version '1.2.1'.
[2011-09-09 13:40:28.488] system-artifacts <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.agent.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:40:28.530] system-artifacts <DE0000I> Installing bundle 'org.eclipse.virgo.kernel.deployer.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:40:28.837] system-artifacts <DE0000I> Installing bundle 'org.eclipse.equinox.ds' version '1.3.0.v20110124-0830'.
[2011-09-09 13:40:29.084] system-artifacts <DE0000I> Installing bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'.
[2011-09-09 13:40:29.095] system-artifacts <DE0000I> Installing configuration 'osgi.console.telnet' version '0.0.0'.
[2011-09-09 13:40:29.103] system-artifacts <DE0000I> Installing configuration 'osgi.console.ssh' version '0.0.0'.
[2011-09-09 13:40:30.932] system-artifacts <ME0003I> Dump 'serviceability\dump\2011-09-09-13-40-051' generated
[2011-09-09 13:40:30.940] 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.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.springframework.web_3.1.0.M2>
constraint: <Import-Package: org.apache.http.client; version="[4.1.0,5.0.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.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:40:30.947] system-artifacts <DE0003E> Install failed for bundle 'org.springframework.osgi.core' version '1.2.1'.
[2011-09-09 13:40:30.949] system-artifacts <DE0003E> Install failed for bundle 'org.springframework.osgi.extender' version '1.2.1'.
[2011-09-09 13:40:30.951] system-artifacts <DE0003E> Install failed for bundle 'org.springframework.osgi.io' version '1.2.1'.
[2011-09-09 13:40:30.953] system-artifacts <DE0003E> Install failed for bundle 'org.eclipse.virgo.kernel.agent.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:40:30.954] system-artifacts <DE0003E> Install failed for bundle 'org.eclipse.virgo.kernel.deployer.dm' version '3.0.0.RELEASE'.
[2011-09-09 13:40:30.957] system-artifacts <DE0003E> Install failed for bundle 'org.eclipse.equinox.ds' version '1.3.0.v20110124-0830'.
[2011-09-09 13:40:30.958] system-artifacts <DE0003E> Install failed for bundle 'org.eclipse.equinox.util' version '1.0.200.v20100503'.
[2011-09-09 13:40:30.960] system-artifacts <DE0003E> Install failed for configuration 'osgi.console.telnet' version '0.0.0'.
[2011-09-09 13:40:30.962] system-artifacts <DE0003E> Install failed for configuration 'osgi.console.ssh' version '0.0.0'.
[2011-09-09 13:40:30.964] system-artifacts <DE0003E> Install failed for plan 'org.eclipse.virgo.kernel.userregion.springdm' version '3.0.0'.
[2011-09-09 13:40:30.966] 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.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.springframework.web_3.1.0.M2>
constraint: <Import-Package: org.apache.http.client; version="[4.1.0,5.0.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.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.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.springframework.web_3.1.0.M2>
constraint: <Import-Package: org.apache.http.client; version="[4.1.0,5.0.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.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:40:31.016] system-artifacts <UR0002E> User region failed while deploying initial artifacts. Shutting down.
[2011-09-09 13:40:31.146] System Bundle Shutdown <KE0010I> Shutdown initiated.
|
|
| |
Goto Forum:
Current Time: Tue Jul 22 14:29:30 EDT 2025
Powered by FUDForum. Page generated in 0.04092 seconds
|