我的工作场所正在从Jboss 6迁移到Jboss 7。
我们使用5.1.3版的Hibernate Validator,并且当我们尝试在Jboss 7服务器中部署Web应用程序时,它引发了异常。
09:23:56,031 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 4) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
("deployment" => "ROOT.war"),
("subsystem" => "jaxrs"),
("rest-resource" => "org.apache.cxf.rs.security.oauth.services.RequestTokenService")
]): javax.validation.ValidationException: RESTEASY008520: Unable to load Validation support
Caused by: javax.validation.ValidationException: Unable to find providerclass org.hibernate.validator.HibernateValidator
我对Ether Jboss和Hibernate Validator不太熟悉,并尝试使用Google搜索该问题,但收效甚微。
答案 0 :(得分:0)
看这里https://coredump.su/questions/35063076/how-can-i-disable-javaxvalidationapi-in-jboss-64。尝试将其添加到您的jboss-deployment-structure.xml:
<exclude-subsystems>
<subsystem name="jaxrs"/>
</exclude-subsystems>
<exclusions>
<module name="javaee.api"/>
<module name="javax.validation.api"/>
<module name="javax.faces.api"/>
<module name="org.hibernate.validator"/>
</exclusions>
也许您与jboss模块有冲突。