如何在 JBoss 中配置 IBM IMS 连接器
我有 IMS 连接器 RAR 文件。 将其放置在 JBOSS_INSTALL/server/default/deploy 目录中。 创建了一个 ims-ds.xml 文件并将其放置在同一位置。 看起来好像正在部署并显示以下消息:
21:40:02,800 INFO [RARDeployment] 存在必需的许可条款,请在 .../deploy/ims225Connector.rar/ 中查看 META-INF/ra.xml
但随后它给出以下内容错误:
--- MBean 是问题的根本原因 --- 对象名称:jboss.web.deployment:war=MHAccountDetailsAXIS.war,id=258164183 状态:失败 原因:org.jboss.deployment.DeploymentException:部署期间出错; - 嵌套的 throwable: (javax.naming.NamingException: 资源引用: eis/IMSCZ 没有有效的 JNDI 绑定。检查 jboss-web/resource-ref。)
对象名称: jboss.jca:service=RARDeployment,name=IMS 连接器爪哇 状态:尚未安装 取决于我: jboss.jca:service=NoTxDS,name=eis/IMSCZ
I have the IMS Connector RAR file. Placed it inside JBOSS_INSTALL/server/default/deploy directory. Created a ims-ds.xml file and also placed in the same location. It appears as if it is deploying with this message:
21:40:02,800 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/ims225Connector.rar/
But then it gives the following error:
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=MHAccountDetailsAXIS.war,id=258164183
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: eis/IMSCZ has no valid JNDI binding. Check the jboss-web/resource-ref.)
ObjectName: jboss.jca:service=RARDeployment,name=IMS Connector for Java
State: NOTYETINSTALLED
Depends On Me:
jboss.jca:service=NoTxDS,name=eis/IMSCZ
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
添加了 jboss-web.xml,它提供了 JNDI 和资源引用名称之间的映射,最终成功了。
Added jboss-web.xml that provides a mapping between JNDI and resource-ref name and finally got it going.
更正 IMS-ds.xml 文件后能够继续进行。 接下来我得到:
无法在对象“com.ibm.connector2.ims.ico.IMSManagedConnectionFactory@0”上调用 setter 方法“public void com.ibm.connector2.ims.ico.IMSManagedConnectionFactory.setMFSXMIRepositoryID(java.lang.String)”; - 嵌套的 throwable: (java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.resource.ResourceSet)
接下来我下载 eclipse jar 文件:org.eclipse.emf.common_2.4.0.v200808251517.jar 和
org.eclipse.emf.ecore_2.4.1.v200808251517.jar 并将其放置在与 IMS RAR 相同的位置并克服该错误。
我看到 JNDI 正在建立:
12:02:28,082 INFO [ConnectionFactoryBindingService] 将 ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=eis/IMSCZ' 绑定到 JNDI 名称 'java:eis/IMSCZ'
但随后我收到此错误:
12:02:28,941 警告 [ServiceController] 启动服务 jboss.web.deployment 时出现问题:war=MHAccountDetailsAXIS.war,id=1972990498
org.jboss.deployment.DeploymentException:部署期间出错; - 嵌套的 throwable: (javax.naming.NamingException: resources-ref: eis/IMSCZ 没有有效的 JNDI 绑定。检查 jboss-web/resource-ref。)
我还应该定义什么来实现此目的?
Was able to proceed further after correcting the IMS-ds.xml file. Next I got:
Unable to invoke setter method 'public void com.ibm.connector2.ims.ico.IMSManagedConnectionFactory.setMFSXMIRepositoryID(java.lang.String)' on object 'com.ibm.connector2.ims.ico.IMSManagedConnectionFactory@0'; - nested throwable: (java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.resource.ResourceSet)
Next I download the eclipse jar files:org.eclipse.emf.common_2.4.0.v200808251517.jar and
org.eclipse.emf.ecore_2.4.1.v200808251517.jar and place in the same location as the IMS RAR and get past that error.
I see the JNDI being established:
12:02:28,082 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=eis/IMSCZ' to JNDI name 'java:eis/IMSCZ'
But then I get this error:
12:02:28,941 WARN [ServiceController] Problem starting service jboss.web.deployment:war=MHAccountDetailsAXIS.war,id=1972990498
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: eis/IMSCZ has no valid JNDI binding. Check the jboss-web/resource-ref.)
What else should I define to get this going?
我能够在 JBOSS 上配置 IBM IMS TM 资源适配器。 您可以在安装时使用其中一种方法。
A。 使用命令提示符
B. 使用 Web 控制台
localhost:9990/console
c. 更改standalone.xml 配置文件。
我使用第三种方法作为其他方法参考链接
配置 IMS TM 资源适配器
这里是配置步骤 1 的步骤
:使用以下链接下载 IMS TM RA(您首先需要向 IBM 注册才能下载适配器)
IMS TM 资源适配器
步骤 2:将 ico1322.zip(您从步骤 1 下载的)解压缩到以下文件夹中。
jboss-as-7.1.1.Final\modules
注意:一些 IMS 适配器已经是 JBOSS 安装的一部分,因此请交叉检查默认情况下该适配器是否已经可用。
步骤 3:编辑 jboss-as-7.1.1.Final\standalone\configuration\standalone.xml 文件。
编辑下面的部分并添加以下 XML
替换占位符 ${XXXXXXXXX}
步骤 4:
上面的标签应该具有与我们在步骤中下载的相同的 rar(如果您解压 ims1322.zip 文件,您将找到 ims1322.rar 文件) 1
步骤5:以独立模式启动服务器。
步骤6:检查控制台是否在配置文件中安装了适配器 --> 资源适配器链接
localhost:9990/console
I am able to configure IBM IMS TM Resource adapter on JBOSS. You can use one of the method in installation.
a. Using command prompt
b. Use web console
localhost:9990/console
c. Changing standalone.xml configuration file.
I used 3rd approach for other approach refer link
Configuring IMS TM resource adapter
Here are the steps to configure
Sptep 1: Download IMS TM RA using below link (You first need to register with IBM to be able to download adapter)
IMS TM Resource Adapter
Step 2: Extract the ico1322.zip (which you downloaded from step 1) in below folder.
jboss-as-7.1.1.Final\modules
Note: Some of the IMS adapter are already part of JBOSS installation, So please cross check whether the adapter is already available by default.
Step 3: Edit jboss-as-7.1.1.Final\standalone\configuration\standalone.xml file.
Edit below section and add following XML
Replace the place holders ${XXXXXXXXX}
Step 4:
The above tag should have the same rar(If you unzip the ims1322.zip file, you will find ims1322.rar file) which we had downloaded in step 1
Step 5: Start the server in standalone mode.
Step 6: Check console whether the adapter is installed in profile --> Resource adapter link
localhost:9990/console