Thursday, January 6, 2011

java.lang.NoSuchFieldError: IS_JAVA_1_6

Issue/Exception :

While working on Spring MVC validation faced this exception when using java 1.6 with Spring 2.5.5/Hibernate Validator 4.0.2.GA .

I guess this exception is not related to Spring / Hibernate Validator but common to any api which when run in Java 1.6 environment

Solution :

This issue was solved by putting commons-lang-2.5.jar in the classpath instead of older version of commons-lang library .

Also if the used server has an older version of commons-lang that should be removed

No comments:

Post a Comment