3

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;
}
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
Sudha
  • 220
  • 2
  • 16

1 Answers1

2

I have resolved the issue by adding the following dependency in pom.xml

<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-validator-legacy</artifactId>
     <version>4.0.2.GA</version> 
     <scope>provided</scope>
</dependency>
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
Sudha
  • 220
  • 2
  • 16