尝试在Jboss AS7中部署setRemoteAccessPointSpec
时,找不到方法TuxedoAdapter
。错误详情如下:
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*
答案 0 :(得分: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.xml 和 jar 文件强>
步骤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 和我的网络应用战争档案中删除了常见的广告罐。
步骤6:重新启动EAP服务器
干得好。它对我有用。我认为这对于可能面临这个问题的人会有所帮助。
干杯。