Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2495

Bean validation: application specified validation group causes validation setup to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.1, 2.2.2
    • None
    • validation
    • None
    • WebSphere 8.5.5

    Description

      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.

      Attachments

        Activity

          People

            drwoods Donald Woods
            bmitchell William Mitchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: