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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1, 2.2.2
    • Fix Version/s: None
    • Component/s: validation
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated: