繁体   English   中英

无法解决导入包部署Flex UI项目中的错误

[英]An Import-Package could not be resolved Error in Deploying Flex UI project

我正在使用Vijava 5.5和Vsphere sdk 5.5在Eclipse Juno中开发简单的VSphere Web Client插件。 今天,我尝试将sdk更改为Vsphere sdk 6.0。 从那时起,我在Virgo Server中部署UI项目时遇到“跟随错误”。

后来,我再次恢复了我的Vsphere SDK 5.5本身。 但我仍然收到此错误。 我不知道我错过了什么。 为什么它显示在我的UI项目中? 有什么我可以更改我的依赖关系的地方吗?

错误是

2015-06-11 19:27:26.160] [INFO ] TCP Connection(11)-127.0.0.1  <DE0004I> Starting bundle 'test-provider' version '0.0.0'.

[2015-06-11 19:27:26.160] [INFO ] start-signalling-1            <DE0005I> Started bundle 'test-provider' version '0.0.0'. 

[2015-06-11 19:27:26.957] [INFO ] TCP Connection(11)-127.0.0.1  <DE0000I> Installing bundle 'com.mycompany.testui.testui' version '1.0.0'. 

[2015-06-11 19:27:27.051] [INFO ] TCP Connection(11)-127.0.0.1  <ME0003I> Dump 'C:\ProgramData\vmware\vSphere Web Client\serviceability\dump\2015-06-11-19-27-051' generated 

[2015-06-11 19:27:27.066] [ERROR] TCP Connection(11)-127.0.0.1  <DE0002E> Installation of bundle 'com.mycompany.testui.testui' version '1.0.0' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.mycompany.testui.testui' at version '1.0.0': Cannot resolve: com.mycompany.testui.testui
    Resolver report:
        An Import-Package could not be resolved. Resolver error data <Import-Package: com.mycompany.testprovider; version="0.0.0">. Caused by missing constraint in bundle <com.mycompany.testui.testui_1.0.0>
             constraint: <Import-Package: com.mycompany.testprovider; version="0.0.0">

    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.kernel.deployer.management.StandardDeployer.deploy(StandardDeployer.java:52)
    at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)

部署UI时,必须事先部署服务com.mycompany.test

服务提供者未与插件UI项目链接。 为此,需要执行以下操作。

右键单击Plugin UI项目,然后选择vSphere SDK Tools>打包vSphere Client插件。

在那,选择您的服务提供商项目。 而已。

为了确保在ui捆绑包之前部署了服务捆绑包,请使用plugin-package.xml<bundlesOrder>标记。

vSphere Client(HTML)6.5U1及更高版本对此进行了改进,为每个插件引入了专用范围(OSGi沙盒功能)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM