Payara Server ignoring ExceptionMapper

I’m using Payara Server 6 and trying to have a duplicate key error mapped. Without success.

Errors that inherit RuntimeException are mapped properly, but for some reason org.postgresql.util.PSQLException, org.eclipse.persistence.exceptions.DatabaseException, jakarta.persistence.PersistenceException, jakarta.transaction.TransactionalException and jakarta.transaction.RollbackException cannot be handled.

Error log: [2022-12-28T20:43:21.544-0300] [Payara 6.2022.2] [SEVERE] [] [org.glassfish.jers - Pastebin.com

All ExceptionMappers are mapped using such fashion.