Good morning,
We are working to upgrade our development server to DSpace 7 from Dspace 6.3.
The build fails in the ant update test_database step with several references
to the Sherpa service. Any suggestions on the cause? I have attempted to
disable reference to SHERPA in the local.cfg file without any success.
test_database:
[java] 2021-08-23 11:50:37,830 WARN
org.springframework.context.support.ClassPathXmlApplicationContext @ Exception
encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'org.dspace.app.sherpa.SHERPAService': Unsatisfied
dependency expressed through field 'configurationService'; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.dspace.app.itemimport.BTEBatchImportService] for bean with name
'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] Failure during kernel init: Error creating bean with name
'org.dspace.app.sherpa.SHERPAService': Unsatisfied dependency expressed through
field 'configurationService'; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.dspace.app.itemimport.BTEBatchImportService] for bean with name
'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'org.dspace.app.sherpa.SHERPAService':
Unsatisfied dependency expressed through field 'configurationService'; nested
exception is org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [org.dspace.app.itemimport.BTEBatchImportService] for bean
with name 'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
[java] at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
[java] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1422)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
[java] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882)
[java] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
[java] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
[java] at
org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:277)
[java] at
org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:153)
[java] at
org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:128)
[java] at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:70)
[java] Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.dspace.app.itemimport.BTEBatchImportService] for bean with name
'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1477)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:682)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:649)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1605)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:523)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:502)
[java] at
org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:265)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1456)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1253)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210)
[java] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
[java] ... 16 more
[java] Caused by: java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
[java] at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
[java] at
java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
[java] at java.base/java.lang.Class.forName0(Native Method)
[java] at java.base/java.lang.Class.forName(Class.java:398)
[java] at
org.springframework.util.ClassUtils.forName(ClassUtils.java:285)
[java] at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:456)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1542)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1469)
[java] ... 26 more
[java] Exception in thread "main" java.lang.IllegalStateException: Failure
during kernel init: Error creating bean with name
'org.dspace.app.sherpa.SHERPAService': Unsatisfied dependency expressed through
field 'configurationService'; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.dspace.app.itemimport.BTEBatchImportService] for bean with name
'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:82)
[java] Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'org.dspace.app.sherpa.SHERPAService': Unsatisfied
dependency expressed through field 'configurationService'; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.dspace.app.itemimport.BTEBatchImportService] for bean with name
'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
[java] at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
[java] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1422)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
[java] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882)
[java] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
[java] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
[java] at
org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:277)
[java] at
org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:153)
[java] at
org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:128)
[java] at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:70)
[java] Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.dspace.app.itemimport.BTEBatchImportService] for bean with name
'org.dspace.app.itemimport.BTEBatchImportService' defined in file
[/apps/Discoverarchive/config/spring/api/bte.xml]; nested exception is
java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1477)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:682)
[java] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:649)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1605)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:523)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:502)
[java] at
org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:265)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1456)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1253)
[java] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210)
[java] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
[java] ... 16 more
[java] Caused by: java.lang.ClassNotFoundException:
org.dspace.app.itemimport.BTEBatchImportService
[java] at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
[java] at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
[java] at
java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
[java] at java.base/java.lang.Class.forName0(Native Method)
[java] at java.base/java.lang.Class.forName(Class.java:398)
[java] at
org.springframework.util.ClassUtils.forName(ClassUtils.java:285)
[java] at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:456)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1542)
[java] at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1469)
[java] ... 26 more
BUILD FAILED
/apps/Dspace7-src/DSpace-dspace-7.0/dspace/target/dspace-installer/build.xml:770:
Java returned: 1
-Dale
[Vanderbilt]<https://www.vanderbilt.edu/>
Dale Poulter
Director, Library Technology and Digital Services
Vanderbilt Libraries | Vanderbilt University
615-343-5388 | [email protected]<mailto:[email protected]>
| https://www.library.vanderbilt.edu<https://www.library.vanderbilt.edu/>
Pronouns: he/him/his
My working day may not be your working day. Please do not feel obliged to reply
to this email outside of your normal working hours.
.
--
All messages to this mailing list should adhere to the Code of Conduct:
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-tech/BN0PR08MB7470214C42911EAEE09F9817FEC49%40BN0PR08MB7470.namprd08.prod.outlook.com.