× Discuss on T24 Installation, Setting up the environment, TC Server, jBOSS, Package & Deployment, etc…

Configuring T24 R09 TOCF(EE) on JBOSS EAP 6.4

  • quocdp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #23457 by quocdp
 
I have installed and configured T24 R09 Browser on JBOSS EAP 6.4 using TOCF(EE). I can log into T24 via Browser and post transaction successfully. After that I create batch listener for SWIFT processing using TOCF Listener (tocflistener-ejb.jar) and TOCF Plugin Resource Adapter (tocfplugin-ra.rar) which are packaged in TOCF(EE). When I deploy the tocfee.ear the JBoss's log shown as below:

20:07:24,950 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-12) IJ020001: Required license terms for file:/var/EAP-6.4.0/standalone/tmp/vfs/deployment/deployment243240d2d0ad5e5f/tocfplugin-ra.rar-58d77312b1413f21/contents/
20:07:24,985 INFO  [org.jboss.as.ejb3] (MSC service thread 1-16) JBAS014142: Started message driven bean 'OFSMessageMDBBROWSERTEST2' with 'hornetq-ra' resource adapter
20:07:24,988 INFO  [org.jboss.as.ejb3] (MSC service thread 1-9) JBAS014142: Started message driven bean 'OFSMessageMDBSERVICESTEST4' with 'hornetq-ra' resource adapter
20:07:25,167 SEVERE [com.temenos.tocf.plugin.jca.inflow.ManifestPluginListManager] (MSC service thread 1-12) Unable to load plugins: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_45]
        at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_45]
        at java.util.jar.JarFile.<init>(JarFile.java:136) [rt.jar:1.6.0_45]
        at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:67) [rt.jar:1.6.0_45]
[rt.jar:1.6.0_45]
        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_45]
[rt.jar:1.6.0_45]
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_45]
[rt.jar:1.6.0_45]
[rt.jar:1.6.0_45]
[rt.jar:1.6.0_45]
        at java.net.URL.openStream(URL.java:1010) [rt.jar:1.6.0_45]
        at com.temenos.tocf.plugin.jca.inflow.ManifestPluginListManager.getManifest(ManifestPluginListManager.java:130) [tocfplugin.jar:]
        at com.temenos.tocf.plugin.jca.inflow.ManifestPluginListManager.refreshList(ManifestPluginListManager.java:37) [tocfplugin.jar:]
        at com.temenos.tocf.tcs.plugin.PluginList.Reset(PluginList.java:45) [tcserver.jar:]
        at com.temenos.tocf.plugin.jca.PluginResourceAdapter.start(PluginResourceAdapter.java:89) [tocfplugin.jar:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_45]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_45]
        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_45]
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:351) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1]
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2470) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1]
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1153) [ironjacamar-deployers-common-1.0.31.Final-redhat-1.jar:1.0.31.Final-redhat-1]
        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:221)
        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:113)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

20:07:25,206 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-12) IJ020002: Deployed: file:/var/EAP-6.4.0/standalone/tmp/vfs/deployment/deployment243240d2d0ad5e5f/tocfplugin-ra.rar-58d77312b1413f21/contents/
20:07:25,212 INFO  [org.jboss.as.ejb3] (MSC service thread 1-7) JBAS014142: Started message driven bean 'OFSListenerMDBSERVICESTEST4' with 'tocfee.ear#tocfplugin-ra.rar' resource adapter
20:07:25,219 SEVERE [com.temenos.tocf.plugin.jca.inflow.PluginWorker] (default-threads - 6) Listener to activate could not be found [BFL]


There is no listener to be activated. 
The listener defined in tocfplugin-ra.rar's tcserver.xml is as below:
<LISTENER id="BFL" type="batchfilelistener" active="true">
         <ADAPTERID>T24</ADAPTERID>
         <DIR_IN>C:\temp\sv\ofsrequests</DIR_IN>
         <DIR_OUT>C:\temp\sv\ofsresponses</DIR_OUT>
         <DIR_ERR>C:\temp\sv\ofserrors</DIR_ERR>
         <MAX_PROCESS>0</MAX_PROCESS>
         <EXTENSION_INDEX>idx</EXTENSION_INDEX>
         <EXTENSION_TOPROCESS>tpr</EXTENSION_TOPROCESS>
         <EXTENSION_PROCESSED>pro</EXTENSION_PROCESSED>
         <EXTENSION_ERROR>err</EXTENSION_ERROR>
         <EXTENSION_RESPONSE>rsp</EXTENSION_RESPONSE>
         <REQ_SEPARATOR>lf</REQ_SEPARATOR>
         <SORT_DIRECTORY>true</SORT_DIRECTORY>
         <DELETE_SOURCE>true</DELETE_SOURCE>
      </LISTENER>


The ejb-jar.xml in tocflistener-ejb.jar is as below:
<message-driven id="MessageDriven_OFSListenerMDBTEST4SERVICES">
            <display-name>OFSListener Bean</display-name>
            <ejb-name>OFSListenerMDBSERVICESTEST4</ejb-name>
            <ejb-class>com.temenos.tocf.listener.mdb.TOCFListenerMDB</ejb-class>
            <messaging-type>com.temenos.tocf.common.jca.OFSMessageListener</messaging-type>
            <transaction-type>Bean</transaction-type>
            <activation-config>
                <activation-config-property>
                    <activation-config-property-name>listener</activation-config-property-name>
                    <activation-config-property-value>BFL</activation-config-property-value>
                </activation-config-property>
            </activation-config>
            <resource-ref id="ResourceRef_OFSListenerMDB_jmsQueueConnectionFactoryTEST4SERVICES">
                <res-ref-name>jms/jmsConnectionFactory</res-ref-name>
                <res-type>javax.jms.QueueConnectionFactory</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
            <resource-ref id="ResourceRef_OFSListenerMDB_t24OFSQueueTEST4SERVICES">
                <description>OFS queue</description>
                <res-ref-name>queue/t24OFSQueue</res-ref-name>
                <res-type>javax.jms.Queue</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
            <resource-ref id="ResourceRef_OFSListenerMDB_t24OFSReplyQueueTEST4SERVICES">
                <description>OFS reply queue</description>
                <res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
                    <res-type>javax.jms.Queue</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
        </message-driven>


The jboss-ejb3.xml in tocflistener-ejb.jar is as below:
<enterprise-beans>        
        <!--For T24TEST4 SERVICES-->
        <message-driven>
            <ejb-name>OFSListenerMDBSERVICESTEST4</ejb-name>
            <activation-config>
               <activation-config-property>
                  <activation-config-property-name>listener</activation-config-property-name>
                  <activation-config-property-value>BFL</activation-config-property-value>
               </activation-config-property>
            </activation-config>
            <resource-ref>
                <res-ref-name>jms/jmsConnectionFactory</res-ref-name>
                <jndi-name>java:/ConnectionFactory</jndi-name>
            </resource-ref>
            <resource-ref>
                <res-ref-name>queue/t24OFSQueue</res-ref-name>
                <jndi-name>java:/queue/t24OFSQueueSERVICESTEST4</jndi-name>
            </resource-ref>
            <resource-ref>
                <res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
                <jndi-name>java:/queue/t24OFSReplyQueueSERVICESTEST4</jndi-name>
            </resource-ref>
        </message-driven>
    </enterprise-beans>
    <assembly-descriptor>    
        <!--For T24TEST4 SERVICES-->        
        <mdb:resource-adapter-binding>
            <ejb-name>OFSListenerMDBSERVICESTEST4</ejb-name>
            <mdb:resource-adapter-name>tocfee.ear#tocfplugin-ra.rar</mdb:resource-adapter-name>
        </mdb:resource-adapter-binding>        
    </assembly-descriptor>


Any help will be appreciated!
Thanks,
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.094 seconds