DSpace 7 Installation Error on ant fresh_install -- "unable to locate bean by name or id=database"

991 views
Skip to first unread message

Tyler Jones

unread,
Oct 14, 2021, 6:14:10 PM10/14/21
to DSpace Technical Support
Hello,

I am setting up DSpace 7 on an Ubuntu 20.04 machine with these dependencies:
Java JDK 11
Maven 3.6.3
Ant 1.10.7
PostgreSQL 12.8
Solr 10.8.0

The installation was smooth until `ant fresh_install`. Once run, I receive this error message:

test_database
[java] 2021-10-14 17:36:11,119 WARN  org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by name or id=database. Will try to look up bean by type next.
[java] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'database' available

I have successfully tested my database connection according to what is listed in the troubleshooting page in the wiki: `psql -U dspace -W -h localhost`.

I do not know to what "bean" ant is referring. Has anyone else encountered this error message?

Thanks,
Tyler Jones

Tyler Jones

unread,
Oct 14, 2021, 7:00:50 PM10/14/21
to DSpace Technical Support
Solved. Please disregard 🙃

I had made tomcat the owner of the [dspace] folder, but I had not granted it the proper permissions. 


--
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 dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/be07b3c0-5e70-496f-b83d-9633b2b65478n%40googlegroups.com.

Eldridge van der Westhuizen

unread,
Jun 29, 2022, 3:35:01 PM6/29/22
to DSpace Technical Support
Hi Tyler

Do you remember what you did with the permissions to fix this?  My dspace folder is also owned by Tomcat user and i still get this same error.  

Reply all
Reply to author
Forward
0 new messages