0

setRemoteAccessPointSpec尝试TuxedoAdapter在 Jboss AS7中部署时获取方法未找到异常。错误详情如下:

14:51:47,250 ERROR [org.jboss.msc.service.fail] (ResourceAdapterDeploymentService Thread Pool -- 1) MSC000001: Failed to start service jboss.ra.deployment."com.oracle.tuxedo.TuxedoAdapter.rar_TuxedoAdapter": org.jboss.msc.service.
StartException in service jboss.ra.deployment."com.oracle.tuxedo.TuxedoAdapter.rar_TuxedoAdapter": JBAS010446: Failed to start RA deployment [com.oracle.tuxedo.TuxedoAdapter]
        at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$1.run(AbstractResourceAdapterDeploymentService.java:279) [jboss-as-connector-7.5.0.Final-redhat-21.jar:7.5.0.Final-red
hat-21]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_51]
        at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_51]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]
Caused by: org.jboss.jca.deployers.common.DeployException: JBAS010472: Deployment com.oracle.tuxedo.adapter.TuxedoResourceAdapter failed
        at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractAS7RaDeployer.initAndInject(AbstractResourceAdapterDeploymentService.java:520) [jboss-as-connector-7.5.0.Final
-redhat-21.jar:7.5.0.Final-redhat-21]
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1267) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1]
        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:185) [jboss-as-connector-7.5.0.Final-redhat-21.jar:7.5.0
.Final-redhat-21]
        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:106) [jboss-as-connector-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_51]
        at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_51]
**Caused by: java.lang.NoSuchMethodException: JBAS010474: Method setRemoteAccessPointSpec not found**
        at org.jboss.as.connector.util.Injection.inject(Injection.java:130) [jboss-as-connector-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
        at org.jboss.as.connector.util.Injection.inject(Injection.java:83) [jboss-as-connector-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
        at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractAS7RaDeployer.initAndInject(AbstractResourceAdapterDeploymentService.java:507) [jboss-as-connector-7.5.0.Final
-redhat-21.jar:7.5.0.Final-redhat-21]
tuxedo-adapter.rar fialed
failed*
4

1 回答 1

0

我已经解决了这个问题。基本上问题发生是因为在我的 tuxedoAdapter 和我的 Web 应用程序中使用了公共库。

我在 Jboss EAP 中创建了一个共享模块,并将所有这些常用的 jar 文件放在 EAP 服务器的模块中。我所做的配置如下,

第 1 步:我创建了一个module.xml,在其中添加了常用的 jar。

<module xmlns="urn:jboss:module:1.1" name="common-jars">
<!--<properties>
    <property name="jboss.api" value="private"/>
</properties>-->

<resources>
    <resource-root path="com.bea.core.i18n_1.4.0.0.jar"/>
    <resource-root path="com.bea.core.jatmi_1.3.1.0.jar"/>
    <resource-root path="com.oracle.tuxedo.adapter_1.1.0.0.jar"/>
    <!-- Insert resources here -->
</resources>

<dependencies>
    <module name="javaee.api"/>
    <module name="javax.api"/>
</dependencies>

第 2 步:在$EAP-SERVER\modules\system\layers\base中创建如下目录common\jars\main

第 3 步:在$EAP-SERVER\modules\system\layers\base\common\jars\main中添加module.xmljar文件

第 4 步:修改$EAP-SERVER\standalone\configuration\standalone.xml,如下所示,

<subsystem xmlns="urn:jboss:domain:ee:1.2">
        <global-modules>
            <module name="common.jars"/>
        </global-modules>
        <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
        <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
        <annotation-property-replacement>false</annotation-property-replacement>
    </subsystem>

第 5 步:从TuxedoAdapter.rar和我的 web 应用程序 war 文件中删除常见的 jar 。

第 6 步:重新启动 EAP 服务器

很好。它对我有用。我认为这将对可能面临此问题的人有所帮助。

干杯。

于 2016-03-13T01:32:24.453 回答