I am trying to migrate my application from hibernate 3 to 4 also I am using Seam 2.2 and I am getting the compilation error The type org.hibernate.validator.InvalidValue cannot be resolved. It is indirectly referenced from required .class files
.
Somehow the StatusMessages.instance().add
is indirectly referencing hibernate.
if(this.acctNum==null || this.acctNum.trim().length()==0) {
StatusMessages.instance().add(StatusMessage.Severity.ERROR, " Please enter an account number");
return null;
}