You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Bob Mitchell (JIRA)" <ji...@apache.org> on 2014/04/23 15:40:14 UTC
[jira] [Created] (OPENJPA-2495) Bean validation: application
specified validation group causes validation setup to fail
Bob Mitchell created OPENJPA-2495:
-------------------------------------
Summary: Bean validation: application specified validation group causes validation setup to fail
Key: OPENJPA-2495
URL: https://issues.apache.org/jira/browse/OPENJPA-2495
Project: OpenJPA
Issue Type: Bug
Components: validation
Affects Versions: 2.2.2, 2.2.1
Environment: WebSphere 8.5.5
Reporter: Bob Mitchell
In a Java EE environment, when specifying a validation group using the "javax.persistence.validation.group.group.pre-persist" (or pre-update or pre-delete) causes a "Could not create the optional validation provider" because it cannot find the class for the validation group. The problem appears to be that the code to find the class (org.apache.openjpa.persistence.validation.ValidationImpl.getValidationGroup) is using Class.forName(className) and not using the application's context class loader.
--
This message was sent by Atlassian JIRA
(v6.2#6252)