Cannot upgrade 7.6.3 -> 7.6.5 Tomcat failure No qualifying bean of type 'org.dspace.google.GoogleAsyncEventListener'

6 views
Skip to first unread message

George Peterson

unread,
Nov 19, 2025, 10:11:57 AMNov 19
to DSpace Developers
With clean unmodified code (all customization removed) i'm receiving a critical error while starting Tomcat (tail of the message):

[2025-11-19 14:21:52] [crit] Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'application': Unsatisfied dependency expressed through field 'googleAsyncEventListener'; nested exc
eption is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.dspace.google.GoogleAsyncEventListener' available: expected at least 1 bean which qualifies as autowire candidate. Dependency ann
otations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:693)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:408)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:401)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:214)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:213)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:176)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:171)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:156)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:87)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:262)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:236)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:193)
[2025-11-19 14:21:52] [crit]     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162)
[2025-11-19 14:21:52] [crit]     ... 38 more
[2025-11-19 14:21:52] [crit] Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.dspace.google.GoogleAsyncEventListener' available: expected at least 1 bean which qualifies as auto
wire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1801)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1357)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
[2025-11-19 14:21:52] [crit]     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:710)
[2025-11-19 14:21:52] [crit]     ... 66 more

This was introduced in 7.6.4 it fails similarly. 7.6.3 works OK

As far as i checked, the googleAsyncEventListener class has not changed since 7.6.3, similarly dspace/config/spring/rest/event-service-listeners.xml stays the same

This upgrade attempt was run on a copy of production data, i believe i followed the upgrade documentation well

Any ideas, please? Thanks.

DSpace Developers

unread,
Dec 3, 2025, 12:21:17 PMDec 3
to DSpace Developers
Hi,

As we've not heard of others reporting this issue before (and I can verify that 7.6.5 is working fine for me locally), my best guess is this is some sort of caching or build issue.  Or, it's also possible this is a "snowball" type of error, where there's an earlier error in your logs which has "snowballed" into this (misleading) error message.  We have seen similar "snowballing" errors before where the last error in the logs can be misleading and is the result if an earlier error.

So, my best advice is to double check your logs for additional error messages (especially earlier in the start up process).  If you don't see anything there, then you may want to try to rebuild everything and ensure your "event-service-listeners.xml" is correct for 7.6.5, and that you have the "org.dspace.google.GoogleAsyncEventListener" class in your dspace-api.jar.

Tim

Reply all
Reply to author
Forward
0 new messages