This rule flags any org.apache.bval.jsr* (bval 1.1) and org.apache.bval.jsr303* (bval 1.0) package references in validation.xml deployment descriptors. Bean Validation 2.0 and later use the Hibernate Validator implementation instead of the Apache BVal implementation which was used for Bean Validation 1.0 and 1.1. An automated fix is provided that overwrites the configuration to use the Hibernate Validator classes.
For example, given the following elements in the validation.xml file:
The automated fix overwrites the values using Hibernate Validator values:
The default parameter-name-provider is an internal package class of org.hibernate.validator.internal.engine.DefaultParameterNameProvider . The automated fix deletes the setting so that the default is used.
Copy the custom configuration to your application build file to enable the fix automation.
For more information on configuring validation in WebSphere Liberty, see the Bean Validation 2.0 documentation.