【问题】
AppServer 6.5 部署业务应用war报错:
Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method java.lang.RuntimeException:
java.lang.ClassNotFoundException: org.hibernate.validator.cdi.internal.interceptor.ValidationInterceptor
【解答】
项目中解决方法:
在war包的WEB-INF/lib目录下新增validation-api-2.0.0.Final.jar、jboss-logging-3.3.0.Final.jar、hibernate-validator-cdi-6.0.3.Final.jar、hibernate-validator-6.0.3.Final.jar、classmate-1.3.1.jar,重新部署正常
附:“validation-api-2.0.0.Final.jar、jboss-logging-3.3.0.Final.jar、hibernate-validator-cdi-6.0.3.Final.jar、hibernate-validator-6.0.3.Final.jar、classmate-1.3.1.jar”获取方式:
https://jar-download.com/artifacts/org.hibernate.validator/hibernate-validator-cdi/6.0.3.Final/source-code
从上述地址里下载jar_files.zip,解压后即可获取这5个jar包
原文链接:http://doc.primeton.com/pages/viewpage.action?pageId=40272424
详细咨询请联系普元售后:cservice@primeton.com