我正试图开始迁移到Eclipse Virgo 3.7.2,以迁移到Spring 4.3.9。 我收到了3.6.4之前没有的使用违规错误。我必须进行一些调整才能迁移spring模式并删除springframework libd,该libd现在似乎已经消失了,但是没有什么可以解释以下内容:
fs-watcher <DE0002E> Installation of plan 'multi-artifact.plan' version '1.0.0' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'multi-artifact.plan-1-org.geppetto.frontend' at version '0.3.9': Cannot resolve: multi-artifact.plan-1-org.geppetto.frontend
Resolver report:
An Import-Package could not be resolved. Resolver error data <Import-Package: org.springframework.web.servlet; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-org.geppetto.frontend_0.3.9>
constraint: <Import-Package: org.springframework.web.servlet; version="0.0.0">
An Import-Package could not be resolved. Resolver error data <Import-Package: org.geppetto.frontend.admin; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-synthetic.context_1.0.0>
constraint: <Import-Package: org.geppetto.frontend.admin; version="0.0.0"> constrained to bundle <multi-artifact.plan-1-org.geppetto.frontend> constrained bundle version range "[0.3.9,0.3.9]"
with attributes {module_scope=multi-artifact.plan-1}
Uses violation: <Import-Package: org.springframework.http.converter.xml; version="[4.3.9.RELEASE,4.3.9.RELEASE]"> in bundle <org.springframework.webmvc_4.3.9.RELEASE[1532366399144]>
Resolver reported uses conflict for import
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:46)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessGraph(CompensatingPipeline.java:73)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(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:359)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:185)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:140)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:253)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.deploy(HotDeployerFileSystemListener.java:225)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.deployIfNotDeployed(HotDeployerFileSystemListener.java:237)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.onChange(HotDeployerFileSystemListener.java:88)
at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners(FileSystemChecker.java:380)
at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystemChecker.java:289)
at org.eclipse.virgo.nano.deployer.hot.WatchTask.run(WatchTask.java:49)
at java.lang.Thread.run(Thread.java:748)
[2018-07-23 19:20:12.041] fs-watcher <DE0003E> Install failed for bundle 'multi-artifact.plan-1-org.geppetto.model' version '0.3.9'.
[2018-07-23 19:20:12.042] fs-watcher <DE0003E> Install failed for bundle 'multi-artifact.plan-1-org.geppetto.core' version '0.3.9'.
[2018-07-23 19:20:12.043] fs-watcher <DE0003E> Install failed for bundle 'multi-artifact.plan-1-org.geppetto.model.neuroml' version '0.3.9'.
[2018-07-23 19:20:12.044] fs-watcher <DE0003E> Install failed for bundle 'multi-artifact.plan-1-org.geppetto.simulation' version '0.3.9'.
[2018-07-23 19:20:12.046] fs-watcher <DE0003E> Install failed for bundle 'multi-artifact.plan-1-org.geppetto.frontend' version '0.3.9'.
[2018-07-23 19:20:12.047] fs-watcher <DE0003E> Install failed for plan 'multi-artifact.plan' version '1.0.0'.
[2018-07-23 19:20:12.048] fs-watcher <DE0500E> Unable to install application from URI 'file:/home/walrus/code/virgo-tomcat-server-3.7.2.RELEASE/pickup/geppetto.plan'. Cannot satisfy constraints for bundle 'multi-artifact.plan-1-org.geppetto.frontend' version '0.3.9'. Cannot resolve: multi-artifact.plan-1-org.geppetto.frontend
Resolver report:
An Import-Package could not be resolved. Resolver error data <Import-Package: org.springframework.web.servlet; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-org.geppetto.frontend_0.3.9>
constraint: <Import-Package: org.springframework.web.servlet; version="0.0.0">
An Import-Package could not be resolved. Resolver error data <Import-Package: org.geppetto.frontend.admin; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-synthetic.context_1.0.0>
constraint: <Import-Package: org.geppetto.frontend.admin; version="0.0.0"> constrained to bundle <multi-artifact.plan-1-org.geppetto.frontend> constrained bundle version range "[0.3.9,0.3.9]"
with attributes {module_scope=multi-artifact.plan-1}
Uses violation: <Import-Package: org.springframework.http.converter.xml; version="[4.3.9.RELEASE,4.3.9.RELEASE]"> in bundle <org.springframework.webmvc_4.3.9.RELEASE[1532366399144]>
Resolver reported uses conflict for import
. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'multi-artifact.plan-1-org.geppetto.frontend' at version '0.3.9': Cannot resolve: multi-artifact.plan-1-org.geppetto.frontend
Resolver report:
An Import-Package could not be resolved. Resolver error data <Import-Package: org.springframework.web.servlet; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-org.geppetto.frontend_0.3.9>
constraint: <Import-Package: org.springframework.web.servlet; version="0.0.0">
An Import-Package could not be resolved. Resolver error data <Import-Package: org.geppetto.frontend.admin; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-synthetic.context_1.0.0>
constraint: <Import-Package: org.geppetto.frontend.admin; version="0.0.0"> constrained to bundle <multi-artifact.plan-1-org.geppetto.frontend> constrained bundle version range "[0.3.9,0.3.9]"
with attributes {module_scope=multi-artifact.plan-1}
Uses violation: <Import-Package: org.springframework.http.converter.xml; version="[4.3.9.RELEASE,4.3.9.RELEASE]"> in bundle <org.springframework.webmvc_4.3.9.RELEASE[1532366399144]>
Resolver reported uses conflict for import
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:46)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessGraph(CompensatingPipeline.java:73)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(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:359)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:185)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:140)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:253)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.deploy(HotDeployerFileSystemListener.java:225)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.deployIfNotDeployed(HotDeployerFileSystemListener.java:237)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.onChange(HotDeployerFileSystemListener.java:88)
at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners(FileSystemChecker.java:380)
at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystemChecker.java:289)
at org.eclipse.virgo.nano.deployer.hot.WatchTask.run(WatchTask.java:49)
at java.lang.Thread.run(Thread.java:748)
[2018-07-23 19:20:12.053] fs-watcher <HD0002E> Hot deploy failed for file 'geppetto.plan'. org.eclipse.virgo.nano.deployer.api.core.DeploymentException: Dependency satisfaction failed
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:362)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:185)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:140)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:253)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.deploy(HotDeployerFileSystemListener.java:225)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.deployIfNotDeployed(HotDeployerFileSystemListener.java:237)
at org.eclipse.virgo.nano.deployer.hot.HotDeploymentFileSystemListener.onChange(HotDeployerFileSystemListener.java:88)
at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners(FileSystemChecker.java:380)
at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystemChecker.java:289)
at org.eclipse.virgo.nano.deployer.hot.WatchTask.run(WatchTask.java:49)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'multi-artifact.plan-1-org.geppetto.frontend' at version '0.3.9': Cannot resolve: multi-artifact.plan-1-org.geppetto.frontend
Resolver report:
An Import-Package could not be resolved. Resolver error data <Import-Package: org.springframework.web.servlet; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-org.geppetto.frontend_0.3.9>
constraint: <Import-Package: org.springframework.web.servlet; version="0.0.0">
An Import-Package could not be resolved. Resolver error data <Import-Package: org.geppetto.frontend.admin; version="0.0.0">. Caused by missing constraint in bundle <multi-artifact.plan-1-synthetic.context_1.0.0>
constraint: <Import-Package: org.geppetto.frontend.admin; version="0.0.0"> constrained to bundle <multi-artifact.plan-1-org.geppetto.frontend> constrained bundle version range "[0.3.9,0.3.9]"
with attributes {module_scope=multi-artifact.plan-1}
Uses violation: <Import-Package: org.springframework.http.converter.xml; version="[4.3.9.RELEASE,4.3.9.RELEASE]"> in bundle <org.springframework.webmvc_4.3.9.RELEASE[1532366399144]>
Resolver reported uses conflict for import
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:46)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessGraph(CompensatingPipeline.java:73)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(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:359)
... 10 common frames omitted
我们的项目基于Maven,在pom.xml文件中,我们使用以下依赖项:
enter code here
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
其中spring.version = 4.3.9
处女座3.7.2还带有repository / ext文件夹中的springframework 4.3.9依赖项。
我正在使用的接送计划如下所示: pick up plan
引起问题的工件是最后一个,即org.geppetto.frontend。如果我从计划中删除它,然后转到http://localhost:8080/admin/content/artifacts并从那里手动部署工件,则不会收到错误消息。
任何有关正在发生的事情的想法都将受到赞赏!