The default value for maxSize is java.lang.Integer#MAX_VALUE which can lead to the database rejecting connections (for apparently no good reason).
The maxSize attribute should be made mandatory.