不支持JBOSS 7.1(或6.1)中的CXF JCA连接器吗? [英] CXF JCA Connector in JBOSS 7.1 (or 6.1) not supported?

查看:81
本文介绍了不支持JBOSS 7.1(或6.1)中的CXF JCA连接器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将应用程序从JBoss 5迁移到JBoss 6,我无法确定一件事.

we are migrating our application from JBoss 5 to JBoss 6 and there is one thing I can't figure out.

我们正在使用Apache CXF-JCA资源适配器(

We are using Apache CXF-JCA resource adapter (CXF-JCA home page). They say it is implementig JCA 1.5 specs and that seems to be a problem. Because JBoss is implementing JCA specs version 1.6 CXF's deployment fails because of following:

Caused by: org.jboss.jca.validator.ValidatorException: Severity: ERROR
Section: 19.4.2
Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.
Code: org.apache.cxf.jca.cxf.ResourceAdapterImpl

Severity: ERROR
Section: 19.4.2
Description: A ResourceAdapter must implement a "public int hashCode()" method.
Code: org.apache.cxf.jca.cxf.ResourceAdapterImpl

我们正在使用最新版本的CXF-JCA(目前为3.0.0).解决该问题的最佳方法是什么?

We are using the latest version of CXF-JCA (that is 3.0.0 at this moment). What is best way how to solve it ?

更新: 我发现JBoss实际上支持JCA 1.5,所以问题在于CXF的实现违反了某些规范,JBoss 6的验证更加严格.因此,有一种解决方法:在Jboss配置中的JCA子系统中禁用验证,如下所示:

UPDATE: I have found that JBoss actually is supporting JCA 1.5 so the problem is that CXF's implementation is violating some specificition and JBoss 6 is more strict in validation. So there is a workaround: disable validation in JCA Subsystem in Jboss configuration like this:

<subsystem xmlns="urn:jboss:domain:jca:1.1">
    <archive-validation enabled="false" />
</subsystem>

推荐答案

因此,我发现有一种解决方案,正如我在编辑问题时提到的那样,该解决方案在JBoss中使用以下方式禁用(或只是设置为不会出错):设置如下:

So I found there is one solution as I mentioned when editing my question and that is disabling (or just setting to not fail on error) archive validation in JBoss with following setting:

<subsystem xmlns="urn:jboss:domain:jca:1.1">
    <archive-validation enabled="false" />
</subsystem>

从我发现的情况来看,这是由于CXF网站上缺少实施JCA规范的部分引起的.再加上在较新的JBoss版本中进行更严格的验证,都将导致这种麻烦.

From what I discovered It is caused by missing piece of implementation JCA specs on CXF site. And together with more strict validation in newer JBoss version is causing this troubles.

请参阅下面的注释此JBoss错误报告以获取更多信息.

See comments bellow this JBoss bug report for more informations.

这篇关于不支持JBOSS 7.1(或6.1)中的CXF JCA连接器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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