문제

My project can run on jboss7, it will be validate by hibernate validation but on tomcat7, it cannot be validate. I copied validation-api.jar, jboss-logging.jar in tomcat\lib path bur it still not work.

도움이 되었습니까?

해결책

validation-api-X.Y.Z.jar is only the Bean Validation API, you also need to copy hibernate-validator-X.Y.Z.jar and all other JARs provided in the dist/lib/required folder of the distribution JAR. Alternatively you can use Maven as described in the reference guide to add all the required JARs to your WAR.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top