Jboss 7迁移-ValidationException:无法找到提供程序:HibernateValidator [英] Jboss 7 migration - ValidationException: Unable to find provider: HibernateValidator

查看:479
本文介绍了Jboss 7迁移-ValidationException:无法找到提供程序:HibernateValidator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作场所正在从Jboss 6迁移到Jboss 7.

my work place is migrating from Jboss 6 to Jboss 7.

我们使用v 5.1.3 Hibernate Validator,并且当我们尝试将Web应用程序部署在Jboss 7服务器中时,它引发了异常.

We use v 5.1.3 Hibernate Validator, and when we tried to deploy our web application in the Jboss 7 server, and it threw an exception.

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搜索该问题,但收效甚微.

I am not overly familiar with ether Jboss and Hibernate Validator, and tried googling the issue with little success.

推荐答案

查看此处

Look here https://coredump.su/questions/35063076/how-can-i-disable-javaxvalidationapi-in-jboss-64. Try add this to your 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模块有冲突.

Maybe you have conflict with jboss modules.

这篇关于Jboss 7迁移-ValidationException:无法找到提供程序:HibernateValidator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆