JBoss « Validation « JPA Q&A

1. Error using hibernate-validator on JBoss 6    stackoverflow.com

I get the following error at deploy time:

22:34:40,393 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=fizio.ear/events-service.war#fizio state=Create: org.hibernate.HibernateException: Unable to get the default Bean Validation factory
Caused by:
Caused by: java.lang.IllegalAccessException: Class org.hibernate.cfg.beanvalidation.BeanValidationActivator can ...

2. Is there a less expensive method to do the following primary key validation in hibernate    stackoverflow.com

I need to make sure the new supplierpart I'm creating doesn't exist. It is currently done like so

try {
    new SupplierPartPK(supplierID, partID));