You are right, it is the same problem. Without the postgis-jdbc library it works as expected.
I hope we do not need that postgis-jdbc anywhere else in the project.
Thanks