I could solve the issue. The problem was the mistake in Apache/James documnation. On James website, it says that the JDBC driver must be placed under /conf/lib/ while in their github repo, they have mentioned that the JDBC driver must be placed under /root/libs/