Hello.
Components installed:
1) OS Linux Ubuntu 20.04 LTS
2) Apache Tomcat 9.0.31
3) Java OpenJDK 17.0.5
4) PostgreSQL 12.12
In the /var/lib/tomcat9/conf/cmdbuild/ directory, I previously created a database.conf file with the following content:
#db.url=jdbc:postgresql://localhost:5432/cmdbuild_30
#db.username=cmdbuild
#idb.password=cmdbuild
#db.admin.username=postgres
#db.admin.password=Bn512$AS
Next, I ran the bash script to create the database:
bash /var/lib/tomcat9/webapps/cmdbuild/cmdbuild.sh dbconfig create demo -configfile /etc/tomcat9/cmdbuild/database.conf
The database was created successfully, I go to the web interface, I try to check the test connection, and I get the following error:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/postgresql/ds/PGSimpleDataSource, caused by: java.lang.NoClassDefFoundError: org/postgresql/ds/PGSimpleDataSource, caused by: java.lang.ClassNotFoundException: org.postgresql. ds.PGSimpleDataSource
Tell me what am I doing wrong?
It seems that some library with the description of the “PGSimpleDataSource” class is missing
Also please clarify where should I look for the path org/postgresql/ds/PGSimpleDataSource ?