Re: Using Postgres

2022-01-04 Thread Bs Serge
Finally, IT WORKED, I can't really blame you, to be honest, There is a lot of stuff going on with James and you seem to be the only one around most times. I'll give a hand when I can. So I hope you enjoyed your holidays, Cheers, On Tue, Jan 4, 2022 at 2:18 PM Benoit TELLIER wrote: > You are

Re: Using Postgres

2022-01-04 Thread Benoit TELLIER
You are right. On upcoming 3.7.0/master JDBC the docker image is assembled using JIB (wich brings in the /root/libs folder) Prior to this (3.6.1 included) we were running a java command inside docker, you would need to override the CMD of the container to override the classpath of the container,

Re: Using Postgres

2022-01-04 Thread Bs Serge
Hi Benoit, Still, it does not work, the /root/libs folder does not by default exists in the 3.6.1 guice-jpa docker container, so I had to create it but even it did not solve the issue coz I still get the same error : ClassNotFoundException: org.postgresql.Driver Below is every directory I have pl

Re: Using Postgres

2022-01-03 Thread Benoit TELLIER
Hello Serge, Sorry for jumping late on the topic to provide you help. /root/libs is the folder you need to put things in for them to be on the classpath. extension-jars is a folder looked up when loading extensions (mailet, matcher, listeners, webadmin routes etc...) and is not directly on the c

Re: Using Postgres

2022-01-03 Thread Bs Serge
# docker exec -it james_run sh # find -name post* ./james-server-cli.lib/postgresql-42.3.1.jar ./extensions-jars/postgresql-42.3.1.jar ./james-server-jpa-guice.lib/postgresql-42.3.1.jar ./postgresql-42.3.1.jar # I have included the Postgres jar file in every possible directory but still, I get the

Re: Using Postgres

2022-01-03 Thread Bs Serge
Progress update : I added the Postgres jar file in the 'extensions-jars' folder and I can see it being loaded in the classpath in the logs : 11:41:55.472 [34m[INFO ] [0;39m o.a.j.u.ExtendedClassLoader - Loading custom classpath resource /root/./extensions-jars/postgresql-42.3.1.jar but I'm still