Webapp deployment error in Dspace 7 beta 5

334 views
Skip to first unread message

Mateo Palos

unread,
May 11, 2021, 1:06:46 PM5/11/21
to DSpace Technical Support

Hello, all,

I'm trying to troubleshoot an issue that occurs when I try to run the Dspace 7 beta 5 backend. I was able to run the beta 4 with similar configs, so I'm wondering what might be going on here.

We're running CentOS 8 and Tomcat 9.0.39. Here's the error information we pulled from the catalina logs:

May-2021 05:30:53.177 SEVERE [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/opt/tomcat/webapps/server]java.lang.IllegalStateException: Error starting childat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1866)at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1866)at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.startup.Catalina.start(Catalina.java:772)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/server]]at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)... 37 moreCaused by: java.lang.RuntimeException: Failure during ServletContext initialisation: Error creating bean with name 'org.dspace.importer.external.service.ImportService' d$at org.dspace.app.rest.utils.DSpaceKernelInitializer.initialize(DSpaceKernelInitializer.java:65)at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626)at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370)at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.startup.Catalina.start(Catalina.java:772)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/server]]at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)... 37 moreCaused by: java.lang.RuntimeException: Failure during ServletContext initialisation: Error creating bean with name 'org.dspace.importer.external.service.ImportService' d$at org.dspace.app.rest.utils.DSpaceKernelInitializer.initialize(DSpaceKernelInitializer.java:65)at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626)at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370)at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)... 38 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.importer.external.service.ImportService' defined in URL [ja$at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:428)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:173)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1699)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1444)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)at org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:277)at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:153)at org.dspace.app.rest.utils.DSpaceKernelInitializer.initialize(DSpaceKernelInitializer.java:49)... 47 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pubmedImportService': Injection of resource dependencies failed; neste$at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:337)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)... 38 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.importer.external.service.ImportService' defined in URL [ja$at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:428)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:173)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1699)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1444)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)at org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:277)at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:153)at org.dspace.app.rest.utils.DSpaceKernelInitializer.initialize(DSpaceKernelInitializer.java:49)... 47 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pubmedImportService': Injection of resource dependencies failed; neste$at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:337)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1422)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)... 64 moreCaused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'maxRetry' availableat org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:808)at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1279)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:297)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeanByName(AbstractAutowireCapableBeanFactory.java:454)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:543)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:513)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:653)at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:248)at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:334)... 72 more11-May-2021 05:30:53.179 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/tomcat/webapps/server] has finished in $11-May-2021 05:30:53.191 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]11-May-2021 05:30:53.237 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [24416] milliseconds

Mark H. Wood

unread,
May 11, 2021, 3:32:24 PM5/11/21
to dspac...@googlegroups.com
On Tue, May 11, 2021 at 10:06:46AM -0700, 'Mateo Palos' via DSpace Technical Support wrote:
> I'm trying to troubleshoot an issue that occurs when I try to run the
> Dspace 7 beta 5 backend. I was able to run the beta 4 with similar configs,
> so I'm wondering what might be going on here.

[snip]

> 64 moreCaused by:
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'maxRetry' availableat

This is what I would check first. It should be defined near the
bottom of 'config/spring/api/pubmed-integration.xml'.
'dspace-api/src/main/java/org/dspace/importer/external/service/components/AbstractRemoteMetadataSource.java'
requests to have it injected via its constructor, and Spring is trying
to instantiate it in order to do that.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Mateo Palos

unread,
May 13, 2021, 9:07:33 AM5/13/21
to DSpace Technical Support

Thanks, Mark. I do see that bean defined in that file, so I'm not sure what to make of that error.

Has anyone had any success disabling this integration, or at least bypassing this check for startup? I tried commenting out the integration in external-services.xml, but that just yielded a similar error to the original NoSuchBeanDefinitionException error.

Mateo

Tim Donohue

unread,
May 13, 2021, 9:53:34 AM5/13/21
to DSpace Technical Support, Mateo Palos
Mateo,

It sounds like something is "invalid" in
your `config/spring/` directory in general....it could be that you have a config or two from Beta 4 that are now conflicting with your attempt to install Beta 5 over Beta 4.

You might simply try removing that entire 'config/spring/' directory, and then reinstalling Beta 5 (via ant update), which should recreate that folder with the Beta 5 expected configurations.

I will note this error doesn't appear in a fresh install of Beta 5....that's why I suspect it's something with the fact that you are trying to install Beta 5 over an existing Beta 4.  Keep in mind that these Beta releases are not considered "stable" so they may or may not be easy to upgrade between....but, we are ensuring it will be possible to upgrade from DSpace 6.x to 7.0 final (once that's ready to go).

Tim

From: 'Mateo Palos' via DSpace Technical Support <dspac...@googlegroups.com>
Sent: Thursday, May 13, 2021 8:07 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] Webapp deployment error in Dspace 7 beta 5
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/fadf638b-2993-4ffc-9f12-f12667905957n%40googlegroups.com.

Mateo Palos

unread,
May 13, 2021, 10:18:52 AM5/13/21
to DSpace Technical Support
Thanks, Tim. That's mysterious, as this is definitely a fresh install--in fact, it's the second fresh install of beta 5 after clearing all existing dspace files on the server, as I figured an earlier beta 4 file might have gotten copied in by accident during the first beta 5 install. I wonder if something is stuck in a cache somewhere?

Clearing and replacing the spring folder with ant update did clear the error, but now I'm getting a new one:

 Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [tilted] in table [public.relationship_type]
                at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateTable(AbstractSchemaValidator.java:136)
                at org.hibernate.tool.schema.internal.GroupedSchemaValidatorImpl.validateTables(GroupedSchemaValidatorImpl.java:42)
                at org.hibernate.tool.schema.internal.AbstractSchemaValidator.performValidation(AbstractSchemaValidator.java:89)
                at org.hibernate.tool.schema.internal.AbstractSchemaValidator.doValidation(AbstractSchemaValidator.java:68)
                at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192)
                at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:73)
                at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:320)
                at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462)
                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:708)
                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)
                at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:616)
                at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:600)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)
                ... 178 more

It occurs to me I am still using the postgres database I created for beta 4. Has anything changed in the database structure since then?

Mateo

Mark H. Wood

unread,
May 13, 2021, 10:43:11 AM5/13/21
to dspac...@googlegroups.com
On Thu, May 13, 2021 at 06:07:33AM -0700, 'Mateo Palos' via DSpace Technical Support wrote:
> Thanks, Mark. I do see that bean defined in that file, so I'm not sure what
> to make of that error.
>
> Has anyone had any success disabling this integration, or at least
> bypassing this check for startup? I tried commenting out the integration in
> external-services.xml, but that just yielded a similar error to the
> original NoSuchBeanDefinitionException error.

Both PubmedImportMetadataSourceServiceImpl and
ArXivImportMetadataSourceServiceImpl are derived from
AbstractRemoteMetadataSource (via AbstractImportMetadataSource), so
both depend on maxRetry. Oddly enough, maxRetry is defined twice, in
pubmed-integration.xml and arxiv-integration.xml, and they disagree on
its value. It really should be a simple property supplied to each of
those Beans separately.

The v7 documentation is outdated in this area, but it is here:

https://wiki.lyrasis.org/display/DSDOC7x/Live+Import+from+external+sources

PubmedImportMetadataSourceServiceImpl is referenced in
dspace-api/src/main/resources/spring/spring-dspace-addon-import-services.xml
which is compiled into the dspace-api JAR, so it's not really
configurable, at least not without rebuilding.

Do you want to disable the integration just to get rid of this error,
or had you disabled it for other reasons and found that that now causes
this error? If the former, I would suggest trying to find out why
maxRetries is not being defined, especially since there are two
definitions.
signature.asc

Mateo Palos

unread,
May 13, 2021, 10:53:47 AM5/13/21
to DSpace Technical Support
Just to clear the error. We're trying to run through a practice import of our current Dspace 5.5 repository material, and since we're not using this integration, we're happy to give it up if it means removing a blocking issue for our testing. It sounds like it might not be that simple, however.

In any case, thanks for taking a look! 

Mateo

Reply all
Reply to author
Forward
0 new messages