Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » org.eclipse.virgo.kernel.deployer bundle is not started correctly
org.eclipse.virgo.kernel.deployer bundle is not started correctly [message #781068] Fri, 20 January 2012 10:23 Go to next message
Anton Kolmakov is currently offline Anton KolmakovFriend
Messages: 14
Registered: January 2012
Junior Member
Hi, I'm trying to create own application deployer using deployer MBean. But after I'd added dependency on org.eclipse.virgo.kernel.deployer bundle, the server's failed to create an application context of this bundle:

[2012-01-20 12:04:16.390] WARN  service-monitor-thread-1     org.eclipse.virgo.medic.eventlog.default                         KE0100W Reference '&kernelConfig' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.2.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.core.KernelConfig)'. 
[2012-01-20 12:04:16.392] WARN  service-monitor-thread-1     org.eclipse.virgo.medic.eventlog.default                         KE0100W Reference '&bundleStarter' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.2.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.core.BundleStarter)'. 
[2012-01-20 12:05:11.391] WARN  Timer-1                      o.s.o.e.i.d.startup.DependencyWaiterApplicationContextExecutor    Timeout occurred before finding service dependencies for [OsgiBundleXmlApplicationContext(bundle=org.eclipse.virgo.kernel.deployer, config=osgibundle:/META-INF/spring/*.xml)] 
[2012-01-20 12:05:11.393] INFO  Timer-1                      o.s.beans.factory.support.DefaultListableBeanFactory              Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5ba5d: defining beans [moduleContextEventPublisher,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,applicationDeployer,recoveryLog,deploymentListener,artifactStorageFactory,syntheticContextCreatingTransformer,scopingTransformer,bundleManifestVersionUpgrader,planResolver,importExpandingTransformer,bundleDeploymentProperties,userInstalledTaggingTransformer,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#2,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#3,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#4,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#5,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#6,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#7,recoveryMonitorService,recoveryMonitor,recoveryAgent,mainPipeline,refreshSubpipeline,pipelinedApplicationDeployer,stateCleanupListener,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#8,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#9,uriNormaliser,plumber,pipelineFactory,installArtifactTreeInclosure,installEnvironmentFactory,runtimeArtifactModel,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#10,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#11,loggingListener,kernelConfig,deployerConfig,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#12,applicationDeploymentEventNotifier,deploymentListeners,packageAdminUtil,scopeFactory,scopeServiceRepository,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#13,artifactBridges#org.springframework.osgi.service.importer.support.OsgiServiceCollectionProxyFactoryBean#0,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#14,artifactIdentityDeterminer,refreshHandler,bundleInstallArtifactTreeFactory,userBundleContext,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#15,configInstallArtifactTreeFactory,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#16,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#17,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#18,hotDeployer,hotDeployerService,configAdmin,eventLogger,dumpGenerator,packageAdmin,repository,shutdown,tracingService,workArea,osgiFramework,quasiFrameworkFactory,eventAdmin,bundleStarter,importExpander,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#19,org.eclipse.virgo.kernel.management.ManagementExporter#0,org.eclipse.virgo.kernel.management.ManagementExporter#1,org.eclipse.virgo.kernel.serviceability.dump.DumpCoordinator#0]; root of factory hierarchy 
[2012-01-20 12:05:11.396] ERROR Timer-1                      o.s.o.e.i.d.startup.DependencyWaiterApplicationContextExecutor    Unable to create application context for [org.eclipse.virgo.kernel.deployer], unsatisfied dependencies: Dependency on [(objectClass=org.eclipse.virgo.kernel.core.KernelConfig)] (from bean [&kernelConfig]), Dependency on [(objectClass=org.eclipse.virgo.kernel.core.BundleStarter)] (from bean [&bundleStarter]) org.springframework.context.ApplicationContextException: Application context initialization for 'org.eclipse.virgo.kernel.deployer' has timed out
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)

[2012-01-20 12:05:11.397] INFO  Timer-1                      .a.d.i.BlueprintEventPostingOsgiBundleApplicationContextListener  Sending event to topic 'org/osgi/service/blueprint/container/FAILURE' with properties '{bundle.version=3.0.2.RELEASE, bundle=org.eclipse.virgo.kernel.deployer_3.0.2.RELEASE [119], bundle.symbolicName=org.eclipse.virgo.kernel.deployer, exception=org.springframework.context.ApplicationContextException: Application context initialization for 'org.eclipse.virgo.kernel.deployer' has timed out, type=5, timestamp=1327053911396, bundle.id=119}' 
[2012-01-20 12:05:11.398] INFO  Timer-1                      org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Handling event 'org.osgi.service.event.Event [topic=org/osgi/service/blueprint/container/FAILURE]' 
[2012-01-20 12:05:11.398] ERROR Timer-1                      org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Recording application context construction failure 'org.springframework.context.ApplicationContextException: Application context initialization for 'org.eclipse.virgo.kernel.deployer' has timed out' for bundle 'org.eclipse.virgo.kernel.deployer_3.0.2.RELEASE [119]' 
[2012-01-20 12:05:11.403] ERROR Timer-1                      org.eclipse.virgo.medic.eventlog.default                         AG0000E Application context creation failure for bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.2.RELEASE'. org.springframework.context.ApplicationContextException: Application context initialization for 'org.eclipse.virgo.kernel.deployer' has timed out
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)

[2012-01-20 12:05:11.404] ERROR Timer-1                      o.s.osgi.extender.internal.activator.ContextLoaderListener        Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.eclipse.virgo.kernel.deployer, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.context.ApplicationContextException: Application context initialization for 'org.eclipse.virgo.kernel.deployer' has timed out
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)


Any ideas what could be wrong?
Re: org.eclipse.virgo.kernel.deployer bundle is not started correctly [message #781084 is a reply to message #781068] Fri, 20 January 2012 13:30 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
It's hard to say without seeing your code. Deploying a bundle which uses the ApplicationDeployer service should be ok. If you want to protect yourself further, you could drive the deployer mbean via JMX.
Re: org.eclipse.virgo.kernel.deployer bundle is not started correctly [message #781090 is a reply to message #781084] Fri, 20 January 2012 13:51 Go to previous messageGo to next message
Anton Kolmakov is currently offline Anton KolmakovFriend
Messages: 14
Registered: January 2012
Junior Member
Actually I'm using ApplicationDeployer that is exposed as a service. And probably two lines I'd added to org.eclipse.virgo.kernel.userregion.properties files have solved the problem:

serviceImports =\
...
org.eclipse.virgo.kernel.core.BundleStarter, \
org.eclipse.virgo.kernel.core.KernelConfig
Re: org.eclipse.virgo.kernel.deployer bundle is not started correctly [message #781092 is a reply to message #781090] Fri, 20 January 2012 14:06 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
I don't see why those service imports have helped. The ApplicationDeployer service is already imported into the user region and that's all you should need. Did your bundle use either of those other services? (I guess not.)

[Updated on: Fri, 20 January 2012 14:08]

Report message to a moderator

Re: org.eclipse.virgo.kernel.deployer bundle is not started correctly [message #781102 is a reply to message #781092] Fri, 20 January 2012 14:36 Go to previous messageGo to next message
Anton Kolmakov is currently offline Anton KolmakovFriend
Messages: 14
Registered: January 2012
Junior Member
You are right, my bundle only uses ApplicationDeployer and does not use any other services.

I have performed a test on a fresh installation of the server. Everything is OK. Now I am confused and do not understand why the errors occurred.
Re: org.eclipse.virgo.kernel.deployer bundle is not started correctly [message #781120 is a reply to message #781102] Fri, 20 January 2012 15:42 Go to previous message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Cosmic rays are often to blame. Wink
Previous Topic:Problema configuring virgo on eclipse
Next Topic:CME Group and Virgo
Goto Forum:
  


Current Time: Tue Apr 16 08:58:04 GMT 2024

Powered by FUDForum. Page generated in 0.90720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top