org.springframework.context.ApplicationContextException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Edit the "deployer.timeout" in kernel.properties to '100'.Then restart the server cleanly. Then depoy petclinic sample with out starting the database.Now getting the message reference is waiting for service like below. [2009-07-13 12:06:30.748] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. The above message is keep on repeating until 5 mins(500secs) which is the default deployer.timeout period.Even though if i change it to 100 secs waiting for the same time. After 5mins getting the message "org.springframework.context.ApplicationContextException: Application context initialization for 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' has timed out" and again keep on waiting for the service with out timeout until i hit Ctrl + C. [2009-07-13 12:06:30.748] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:06:30.837] Thread-19 <SPWE0001I> Started web bundle '/'. [2009-07-13 12:06:30.839] Thread-19 <SPWE0000I> Starting web bundle '/petclinic'. [2009-07-13 12:06:36.742] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:06:54.744] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:07:48.747] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:08:48.751] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:09:48.754] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:10:48.758] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:11:28.745] Timer-0 <SPDE0020E> Application context creation failure for bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc'. org.springframework.context.ApplicationContextException: Application context initialization for 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' has timed out at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) [2009-07-13 12:11:31.411] Thread-19 <SPWE0005E> Failed to start web bundle '/petclinic': consult the Server trace.log for further details. [2009-07-13 12:11:48.759] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:12:48.763] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:13:48.766] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:14:48.769] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:15:48.772] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:16:48.775] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:17:48.778] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:18:48.780] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:19:48.783] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:20:48.787] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:21:48.790] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:22:48.794] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:23:48.797] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:24:48.800] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:25:48.804] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:26:48.807] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:27:48.810] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:28:48.813] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:29:48.816] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:30:48.820] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    via by Radhika Madala (c),
  • Edit the "deployer.timeout" in kernel.properties to '100'.Then restart the server cleanly. Then depoy petclinic sample with out starting the database.Now getting the message reference is waiting for service like below. [2009-07-13 12:06:30.748] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. The above message is keep on repeating until 5 mins(500secs) which is the default deployer.timeout period.Even though if i change it to 100 secs waiting for the same time. After 5mins getting the message "org.springframework.context.ApplicationContextException: Application context initialization for 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' has timed out" and again keep on waiting for the service with out timeout until i hit Ctrl + C. [2009-07-13 12:06:30.748] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:06:30.837] Thread-19 <SPWE0001I> Started web bundle '/'. [2009-07-13 12:06:30.839] Thread-19 <SPWE0000I> Starting web bundle '/petclinic'. [2009-07-13 12:06:36.742] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:06:54.744] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:07:48.747] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:08:48.751] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:09:48.754] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:10:48.758] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:11:28.745] Timer-0 <SPDE0020E> Application context creation failure for bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc'. org.springframework.context.ApplicationContextException: Application context initialization for 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' has timed out at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) [2009-07-13 12:11:31.411] Thread-19 <SPWE0005E> Failed to start web bundle '/petclinic': consult the Server trace.log for further details. [2009-07-13 12:11:48.759] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:12:48.763] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:13:48.766] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:14:48.769] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:15:48.772] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:16:48.775] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:17:48.778] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:18:48.780] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:19:48.783] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:20:48.787] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:21:48.790] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:22:48.794] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:23:48.797] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:24:48.800] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:25:48.804] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:26:48.807] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:27:48.810] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:28:48.813] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:29:48.816] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'. [2009-07-13 12:30:48.820] service-monitor-thread-1 <SPKD0001W> Mandatory reference '&dataSource' in bundle 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' version '1.5.0.BUILD-20090618080800' is waiting for service with filter '(objectClass=javax.sql.DataSource)'.
    via by Radhika Madala (c),
  • Atlassian Blogs
    via by Unknown author,
  • OSGi (v2) plugins that ship by default with JIRA wait 60 seconds for JIRA to start up and load the necessary plugins that these plugins depend on. If JIRA takes longer than 60 seconds to start up, these plugins will start timing out and fail to load giving errors such as the below one. {noformat} 2010-10-28 00:07:26,109 main ERROR [atlassian.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.atlassian.gadgets.renderer,com.atlassian.jira.gadgets,com.atlassian.gadgets.oauth.serviceprovider,com.atlassian.gadgets.embedded,com.atlassian.streams.streams-jira-plugin,com.atlassian.gadgets.dashboard 2010-10-28 00:07:36,543 Timer-0 WARN [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Timeout occurred before finding service dependencies for [OsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.gadgets, config=osgibundle:/META-INF/spring/*.xml)] 2010-10-28 00:07:36,582 Timer-0 ERROR [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.jira.gadgets], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.gadgets.dashboard.DashboardService)] (from bean [&dashboardService]), Dependency on [(objectClass=com.atlassian.gadgets.view.GadgetViewFactory)] (from bean [&gadgetViewFactory]) org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.jira.gadgets' has timed out at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) 2010-10-28 00:07:36,589 Timer-0 ERROR [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.gadgets, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.jira.gadgets' has timed out at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) {noformat} If it happens that one of the core plugins times out e.g. REST all depended plugins such as gadgets, activity stream will fail to load. Ultimately the application will start up in an obscure way and we are leaving users without any feedback about it. Most customer report similar problem if JIRA takes longer to start up for e.g. due to under-performing hardware or virtualistaion infrastructure. Unfortunately, at this stage the workaround is behaviour is to restart JIRA and allows it to reinitialise the plugin framework. If one of the core plugins isn't initiated correctly, we should lock up the application and notify the user about this problem by dropping warring into the log file: {noformat} ****************************************** JIRA startup failed, JIRA has been locked. ****************************************** {noformat} and UI message: !lockedup.png!
    via by Bogdan Dziedzic [Atlassian],
    • org.springframework.context.ApplicationContextException: Application context initialization for 'org.springframework.petclinic.jdbc-1.6.0.RELEASE-org.springframework.petclinic.repository.jdbc' has timed out at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)
    No Bugmate found.