When i run the dspace database migrate command after the ant
fresh_install, i also get this error:
2022-06-29 20:24:34,862 WARN unknown unknown
org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by
name or id=database. Will try to look up bean by type next.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'database' available
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:816)
~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1288)
~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1115)
~[spring-context-5.2.20.RELEASE.jar:5.2.20.RELEASE]
at
org.dspace.servicemanager.DSpaceServiceManager.getServiceByName(DSpaceServiceManager.java:426)
[dspace-services-cris-2022.01.01.jar:cris-2022.01.01]
at
org.dspace.scripts.ScriptServiceImpl.getScriptConfiguration(ScriptServiceImpl.java:33)
[dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
at
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:144)
[dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
at
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:124)
[dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)
[dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
I searched the other articles and one other person got the same error
message and seem to have corrected it with changing the /dspace directory
and files ownership all to tomcat. My /dspace directory and all files are
owned by tomcat and the group tomcat already.
I am at a dead end.
On Wednesday, 29 June 2022 at 20:38:58 UTC+2 Eldridge van der Westhuizen
wrote:
> Hi Michael
>
> My database has 119 tables and sequences that shows when i do the
> listing.
>
> I've tried the CRIS commands again without success. When i look at the
> dspace.log file when i run the first dsrun command, i get these messages:
>
> 2022-06-29 18:28:42,834 INFO unknown unknown
> org.apache.commons.beanutils.FluentPropertyBeanIntrospector @ Error when
> creating PropertyDescriptor for public final void
> org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
>
> Ignoring this property.
> 2022-06-29 18:28:43,135 INFO unknown unknown
> org.apache.commons.beanutils.FluentPropertyBeanIntrospector @ Error when
> creating PropertyDescriptor for public final void
> org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
>
> Ignoring this property.
> 2022-06-29 18:28:43,151 INFO unknown unknown
> org.apache.commons.beanutils.FluentPropertyBeanIntrospector @ Error when
> creating PropertyDescriptor for public final void
> org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
>
> Ignoring this property.
> 2022-06-29 18:28:43,154 INFO unknown unknown
> org.apache.commons.beanutils.FluentPropertyBeanIntrospector @ Error when
> creating PropertyDescriptor for public final void
> org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
>
> Ignoring this property.
> 2022-06-29 18:28:43,161 INFO unknown unknown
> org.apache.commons.beanutils.FluentPropertyBeanIntrospector @ Error when
> creating PropertyDescriptor for public final void
> org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
>
> Ignoring this property.
> 2022-06-29 18:28:43,178 INFO unknown unknown
> org.apache.commons.beanutils.FluentPropertyBeanIntrospector @ Error when
> creating PropertyDescriptor for public final void
> org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)!
>
> Ignoring this property.
> 2022-06-29 18:28:45,568 INFO unknown unknown org.eclipse.jetty.util.log @
> Logging initialized @3934ms to org.eclipse.jetty.util.log.Slf4jLog
> 2022-06-29 18:28:45,909 INFO unknown unknown
> org.springframework.cache.ehcache.EhCacheManagerFactoryBean @ Initializing
> EhCache CacheManager 'org.dspace.services'
> 2022-06-29 18:28:47,222 INFO unknown unknown
> org.dspace.importer.external.service.ImportService @ Loading 7 import
> sources.
> 2022-06-29 18:28:48,017 INFO unknown unknown
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
>
> @ Autowired annotation is not supported on static methods: public static
> void
> org.dspace.rdf.storage.DOIURIGenerator.setFallback(org.dspace.rdf.storage.URIGenerator)
> 2022-06-29 18:28:48,023 INFO unknown unknown
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
>
> @ Autowired annotation is not supported on static methods: public static
> void
> org.dspace.rdf.storage.DOIHandleURIGenerator.setFallback(org.dspace.rdf.storage.URIGenerator)
> 2022-06-29 18:28:48,257 WARN unknown unknown
> org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by
> name or id=dsrun. Will try to look up bean by type next.
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'dsrun' available
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:816)
>
> ~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1288)
>
> ~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
>
> ~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
>
> ~[spring-beans-5.2.20.RELEASE.jar:5.2.20.RELEASE]
> at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1115)
>
> ~[spring-context-5.2.20.RELEASE.jar:5.2.20.RELEASE]
> at
> org.dspace.servicemanager.DSpaceServiceManager.getServiceByName(DSpaceServiceManager.java:426)
>
> [dspace-services-cris-2022.01.01.jar:cris-2022.01.01]
> at
> org.dspace.scripts.ScriptServiceImpl.getScriptConfiguration(ScriptServiceImpl.java:33)
>
> [dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
> at
> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:144)
> [dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
> at
> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:124)
> [dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
> at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)
> [dspace-api-cris-2022.01.01.jar:cris-2022.01.01]
> 2022-06-29 18:28:48,575 INFO unknown unknown
> org.dspace.storage.rdbms.DatabaseUtils @ Loading Flyway DB migrations from:
> classpath:org/dspace/storage/rdbms/sqlmigration/postgres,
> classpath:org/dspace/storage/rdbms/migration,
> classpath:org/dspace/storage/rdbms/xmlworkflow
> 2022-06-29 18:28:48,594 INFO unknown unknown
> org.flywaydb.core.internal.license.VersionPrinter @ Flyway Community
> Edition 6.5.7 by Redgate
> 2022-06-29 18:28:48,622 INFO unknown unknown
> org.flywaydb.core.internal.database.DatabaseFactory @ Database:
> jdbc:postgresql://localhost:5432/dspace (PostgreSQL 13.7)
> 2022-06-29 18:28:48,628 WARN unknown unknown
> org.flywaydb.core.internal.database.base.Database @ Flyway upgrade
> recommended: PostgreSQL 13.7 is newer than this version of Flyway and
> support has not been tested. The latest supported version of PostgreSQL is
> 12.
> 2022-06-29 18:28:48,714 WARN unknown unknown
> org.flywaydb.core.internal.database.base.Database @ Flyway upgrade
> recommended: PostgreSQL 13.7 is newer than this version of Flyway and
> support has not been tested. The latest supported version of PostgreSQL is
> 12.
> 2022-06-29 18:28:48,763 INFO unknown unknown
> org.dspace.storage.rdbms.DatabaseUtils @ DSpace database schema is up to
> date
> 2022-06-29 18:28:48,774 INFO unknown unknown
> org.dspace.event.EventServiceImpl @ EventService dispatcher pool initialized
> 2022-06-29 18:28:48,874 INFO unknown unknown org.hibernate.Version @
> HHH000412: Hibernate Core {5.4.10.Final}
> 2022-06-29 18:28:49,190 WARN unknown unknown
> org.hibernate.orm.deprecation @ HHH020100: The Ehcache second-level cache
> provider for Hibernate is deprecated. See
> https://hibernate.atlassian.net/browse/HHH-12441 for details.
> 2022-06-29 18:28:49,204 INFO unknown unknown
> org.hibernate.annotations.common.Version @ HCANN000001: Hibernate Commons
> Annotations {5.1.0.Final}
> 2022-06-29 18:28:49,400 INFO unknown unknown
> org.hibernate.dialect.Dialect @ HHH000400: Using dialect:
> org.dspace.storage.rdbms.hibernate.postgres.DSpacePostgreSQL82Dialect
> 2022-06-29 18:28:49,633 WARN unknown unknown
> org.hibernate.cfg.annotations.EntityBinder @ HHH000482:
> @org.hibernate.annotations.Cache used on a non-root entity: ignored for
> [org.dspace.content.Collection]. Please see the Hibernate documentation for
> proper usage.
> 2022-06-29 18:28:49,635 WARN unknown unknown
> org.hibernate.cfg.annotations.EntityBinder @ HHH000482:
> @org.hibernate.annotations.Cache used on a non-root entity: ignored for
> [org.dspace.content.Community]. Please see the Hibernate documentation for
> proper usage.
> 2022-06-29 18:28:49,647 WARN unknown unknown
> org.hibernate.cfg.annotations.EntityBinder @ HHH000482:
> @org.hibernate.annotations.Cache used on a non-root entity: ignored for
> [org.dspace.content.Site]. Please see the Hibernate documentation for
> proper usage.
> 2022-06-29 18:28:49,651 WARN unknown unknown
> org.hibernate.cfg.annotations.EntityBinder @ HHH000482:
> @org.hibernate.annotations.Cache used on a non-root entity: ignored for
> [org.dspace.eperson.EPerson]. Please see the Hibernate documentation for
> proper usage.
> 2022-06-29 18:28:49,653 WARN unknown unknown
> org.hibernate.cfg.annotations.EntityBinder @ HHH000482:
> @org.hibernate.annotations.Cache used on a non-root entity: ignored for
> [org.dspace.eperson.Group]. Please see the Hibernate documentation for
> proper usage.
> 2022-06-29 18:28:49,972 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001007: Using legacy cache name
> [org.hibernate.cache.spi.UpdateTimestampsCache] because configuration could
> not be found for cache [default-update-timestamps-region]. Update your
> configuration to rename cache
> [org.hibernate.cache.spi.UpdateTimestampsCache] to
> [default-update-timestamps-region].
> 2022-06-29 18:28:49,973 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001007: Using legacy cache name
> [org.hibernate.cache.internal.StandardQueryCache] because configuration
> could not be found for cache [default-query-results-region]. Update your
> configuration to rename cache
> [org.hibernate.cache.internal.StandardQueryCache] to
> [default-query-results-region].
> 2022-06-29 18:28:50,007 INFO unknown unknown
> org.hibernate.validator.internal.util.Version @ HV000001: Hibernate
> Validator 6.0.18.Final
> 2022-06-29 18:28:50,346 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.batch.ImpRecord] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,350 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.layout.CrisLayoutMetric2Box] was
> created on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,351 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.batch.ImpMetadatavalue] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,353 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.batch.ImpWorkflowNState] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,355 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.layout.CrisLayoutField] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,356 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.batch.ImpBitstream] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,357 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.deduplication.Deduplication] was
> created on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,359 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.layout.CrisLayoutTab] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,360 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.layout.CrisLayoutBox] was created
> on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:50,362 WARN unknown unknown org.hibernate.orm.cache @
> HHH90001006: Missing cache[org.dspace.batch.ImpBitstreamMetadatavalue] was
> created on-the-fly. The created cache will use a provider-specific default
> configuration: make sure you defined one. You can disable this warning by
> setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
> 2022-06-29 18:28:51,634 INFO unknown unknown
> org.springframework.cache.ehcache.EhCacheManagerFactoryBean @ Shutting down
> EhCache CacheManager 'org.dspace.services'
>
>
> Something is clearly missing. Any idea?
> On Wednesday, 29 June 2022 at 17:50:41 UTC+2 Michael Plate wrote:
>
>> Hi,
>>
>> Am 29.06.22 um 09:38 schrieb Eldridge van der Westhuizen:
>> > Michael, i just want to confirm what version of the backend and
>> frontend
>> > you installed?
>> >
>> > Here is what i used:
>> > 1. Backend
>> > -
>> https://github.com/4Science/DSpace/archive/refs/tags/dspace-cris-2022.01.01.zip
>>
>> > 2. Frontend - https://github.com/4Science/dspace-angular.git
>> >
>> > Also, did you perhaps do any specific CRIS steps that i might have
>> missed?
>> >
>>
>> OK - I'm here again - this is live and in colour…
>> DSpace is DSpace-dspace-cris-2022.01.01, and after ant fresh_install
>> (database error, but continues to end) the database is indeed empty:
>>
>> psql dspace
>> psql (13.7 (Debian 13.7-0+deb11u1))
>> Type "help" for help.
>>
>> dspace=# \d
>> Did not find any relations.
>>
>> dspace database info tells everything is "Pending"…
>>
>> dspace database migrate
>>
>> after that "Pending" is replaced by "Success" - all relations are in the
>> database.
>>
>> [copying the solr-stuff to /var/solr/data/configsets, creating admin]
>>
>> Continuing with CRIS-Install at end of page #9
>>
>> ./dspace dsrun org.dspace.app.util.InitializeEntityTypesOnly -d
>> /dspace dsrun org.dspace.app.util.InitializeEntities -f
>> ../config/entities/correction-relationship-types.xml
>> ./dspace dsrun org.dspace.app.util.InitializeEntities -f
>> ../config/entities/hide-sort-relationship-types.xml
>>
>> maybe this is already enough for you - I have to install frontend
>> tomorrow.
>>
>> Michael
>>
>
--
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/a84e68e5-2a12-436f-9b10-50299aefbdb9n%40googlegroups.com.