使用资源适配器调用大型机CICS的Jboss互动(Jboss CICS interaction fo

2019-10-23 03:55发布

我已经安装在JBoss EAP 6.2 cicseci.rar。 这个资源适配器从下载http://www-01.ibm.com/support/docview.wss?uid=swg24008817#sthash.3k4M8smo.dpuf

但是一旦运行我的简单的代码,我得到这个错误 -

  Exception Logged by: com.ibm.connector2.cics.ECIInteraction

com.ibm.connector2.cics.CICSUserInputException: CTG9628E
InteractionSpec passed to execute() not of type ECIInteractionSpec
  at com.ibm.connector2.cics.ECIInteraction.execute(Unknown Source)
  at com.sample.checkstate.CICSPing.getIt(CICSPing.java:48)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
  at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispat
  at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
  at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
  at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
  at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
  at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
  at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
  at java.lang.Thread.run(Thread.java:662)

没有人对此有任何见解?

Answer 1:

我面临着同样的问题,压脚提升很多研究,我发现,类ECIInteractionSpec出现在2罐 - cicsj2ee.jar和ctgclient.jar。 虽然ctgclient是部署cicseci.rar的一部分,cicsj2ee不是。 因此在运行时,JBoss服务器试图映射ctgclient在ECIInteraction类。 这应该是事实,从cicsj2ee拍摄。

该解决方案是创建一个模块,并包括所有CTG相关罐子有 -

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.cics">
<resources>
<!-- Modules -->
<resource-root path="cicseci.jar" />
<resource-root path="cicsframe.jar"/>
<resource-root path="cicsj2ee.jar" />
<resource-root path="ctgclient.jar" />
<resource-root path="ctgserver.jar" />
</resources>
<dependencies>
    <module name="javax.api" />
    <module name="javax.resource.api"/>
</dependencies>
</module>

这应该被给予CICS RAR部署作为一个模块加载器。 你可以把它作为JBoss的部署,structure.xml的一部分,或作为standalone.xml全局模块。 这解决了这个问题对我来说。 希望它可以帮助你。



文章来源: Jboss CICS interaction for calling Mainframe using Resource Adapter
标签: jboss