2011-07-27 4 views
2

私はバンドルに他のバンドルをデプロイしようとしていますが、主に管理アプリケーションのようなorg.eclipse.virgo.kernel.deployer.core.ApplicationDeployerを使用して起動しています(org.eclipse.virgo .apps.admin)がやっています。私は管理コンソールのコードから自分自身を鼓舞し、次のようにしました。 deploymentIdentity = applicationDeployer(bundleFile.getURI()、新しいDeploymentOptions(false、false、true));VirgoのアプリケーションデプロイヤーAPIアンデプロイ時にクラッシュする

と:

applicationDeployer.undeploy(deploymentIdentity)。

それは動作しますが、たまに、それは例外でクラッシュ:リスナー:

service proxy has been destroyed 
org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed 
     at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:105) ~[na:na] 
     at org.springframework.osgi.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:83) ~[na:na] 
     at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.lookupService(ServiceDynamicInterceptor.java:430) ~[na:na] 
     at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:415) ~[na:na] 
     at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) ~[na:na] 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na] 
     at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) ~[na:na] 
     at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) ~[na:na] 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na] 
     at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) ~[na:na] 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na] 
     at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) ~[na:na] 
     at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) ~[na:na] 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na] 
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[na:na] 

私はその後のOSGiで、サービスREFと最初にapplicationDeployer有線ました。どちらの実装でも、applicationDeployerリファレンスは決して戻ってこないが、virgoのadmin Webアプリケーションではうまく動作する。 私は何が間違っていますか?

答えて

関連する問題