我正在尝试部署一个装在耳内的rar。我把ra.xml包装在rar中。我试图在jboss eap 6.x中部署它,我得到以下错误
{ " JBAS014671:服务失败" => {" jboss.deployment.subunit \" JCA-耳0.0.1-SNAPSHOT.ear \" \" SHM-JCA-文件适配器-0.0.1- SNAPSHOT.rar \" .INSTALL" => " org.jboss.msc.ser service.bartException in service jboss.deployment.subunit。\" jca-ear-0.0.1-SNAPSHOT.ear \"。\" shm-jca-file-adapter-0.0.1- SNAPSHOT.rar \" .INSTALL:JBAS018733:无法处理 阶段INSTALL of subdeployment \" shm-jca-file-adapter-0.0.1-SNAPSHOT.rar \"部署\" jca-ear-0.0.1-SNAPSHOT.ear \" 引起:org.jboss.as.server.deployment.DeploymentUnitProcessingException:java.lang.NullPointerException 引起:java.lang.NullPointerException"}, " JBAS014771:具有缺失/不可用依赖性的服务" => [" jboss.deployment.unit。\" jca-ear-0.0.1-SNAPSHOT.ear \" .deploymentCompleteService缺失[jboss.de 。ployment.subunit \" JCA-耳0.0.1-SNAPSHOT.ear \" \" SHM-JCA-文件适配器0.0.1-SNAPSHOT.rar \&#34 ; .deploymentCompleteService]"] }
其实我尝试在网上搜索很多网站。每个教程仅解释主要部分,并提供指向示例resourceadapter应用程序的链接。所有链接都已过期。
有人可以帮助我吗?
以前我曾经使用glassfish应用服务器,曾经有另一个文件glassfish-resources.xml。我没有找到相同文件的jboss等价物。
我的ra.xml如下所示
<resourceadapter>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>com.resourceadapter.impl.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
<connectionfactory-interface>com.resourceadapter.FileConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.resourceadapter.impl.FileConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>com.resourceadapter.FileConnection</connection-interface>
<connection-impl-class>com.resourceadapter.impl.FileConnectionImpl</connection-impl-class>
</connection-definition>
<transaction-support>XATransaction</transaction-support>
</outbound-resourceadapter>
</resourceadapter>
答案 0 :(得分:1)
我认为这是你的How can I hot deploy a resource-adapter activation in JBoss 7?
您需要添加特定配置META-INF/ironjacamar.xml
,以激活资源适配器