Exception in glassfish when update 4.3.5 -> 5.2.17


I just update my hibernate from 4.3.5 to 5.2.17.
At glassfish 4 startup I have the following exception :

Error occurred during deployment: Exception while preparing the app : org.hibernate.type.SerializableType cannot be cast to org.hibernate.type.CustomType

Do you have any idea of the cause of this problem please ? and how to correct it ?