JBoss and IBM CICS Transaction Gateway
afischb2 Nov 18, 2002 3:38 PMHi!
I have an IBM supplied RAR for accessing their CICS Host system. When I put the rar file in the deploy dir, JBoss deploys it, but what is wrong with my ibmctg-service.xml? Here are the ibmctg-service.xml, JBoss Stack Trace and the ra.xml.
Thanks for help!
Alex
#######################################################
ibmctg-service.xml
#######################################################
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration for the IBM CTG Resource Adapter -->
<!-- -->
<!-- ===================================================================== -->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
ibmctg
<config-property name="ServerName" type="java.lang.String"></config-property>
<config-property name="ConnectionURL" type="java.lang.String"></config-property>
<config-property name="PortNumber" type="java.lang.String">2006</config-property>
<config-property name="UserName" type="java.lang.String"></config-property>
<config-property name="Password" type="java.lang.String"></config-property>
<config-property name="ClientSecurity" type="java.lang.String"></config-property>
<config-property name="ServerSecurity" type="java.lang.String"></config-property>
<config-property name="KeyRingClass" type="java.lang.String"></config-property>
<config-property name="KeyRingPassword" type="java.lang.String"></config-property>
<config-property name="TranName" type="java.lang.String"></config-property>
<config-property name="TPNName" type="java.lang.String"></config-property>
<config-property name="TraceLevel" type="java.lang.Integer">1</config-property>
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=ECIResourceAdapter
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
1
100
2000
10
ByContainer
jboss.jca:service=RARDeployer
#######################################################
JBoss Stack Trace
#######################################################
20:23:05,682 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.3_tomcat-4.1.12/server/default/depl
oy/ibmctg-service.xml
20:23:05,732 WARN [ServiceController] jboss.jca:service=LocalTXDS,name=ECIResourceAdapter does not implement any Servic
e methods
20:23:05,742 INFO [JBossManagedConnectionPool] Creating
20:23:05,752 INFO [JBossManagedConnectionPool] Created
20:23:05,752 INFO [LocalTxConnectionManager] Creating
20:23:05,792 INFO [LocalTxConnectionManager] Created
20:23:05,802 INFO [JBossManagedConnectionPool] Starting
20:23:05,802 INFO [JBossManagedConnectionPool] Started
20:23:05,822 INFO [LocalTxConnectionManager] Starting
20:23:05,842 ERROR [LocalTxConnectionManager] Starting failed
java.lang.NullPointerException
at javax.naming.InitialContext.getURLScheme(InitialContext.java:224)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:273)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.resource.connectionmanager.LocalTxConnectionManager.startService(LocalTxConnectionManager.java:177)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
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:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy5.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:397)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:21
2)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
20:23:06,123 WARN [ServiceController] Problem starting service jboss.jca:service=LocalTxCM,name=ECIResourceAdapter
java.lang.NullPointerException
at javax.naming.InitialContext.getURLScheme(InitialContext.java:224)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:273)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.resource.connectionmanager.LocalTxConnectionManager.startService(LocalTxConnectionManager.java:177)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
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:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy5.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:397)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:21
2)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
20:23:06,403 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.3_tomcat-4.1.12/server/default/deploy/ibmctg-serv
ice.xml
20:23:06,453 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
Incompletely deployed packages:
MBeans waiting for classes:
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=LocalTxCM,name=ECIResourceAdapter
state: FAILED
I Depend On: jboss.jca:service=LocalTXDS,name=ECIResourceAdapter
jboss.jca:service=LocalTxPool,name=ECIResourceAdapter
jboss.jca:service=RARDeployer
Depends On Me: java.lang.NullPointerException]
#######################################################
ra.xml
#######################################################
<!DOCTYPE connector (View Source for full doctype...)>
-
<display-name>ECIResourceAdapter</display-name>
CICS J2EE ECI Resource Adapter
<vendor-name>IBM</vendor-name>
<spec-version>1.0</spec-version>
<eis-type>CICS</eis-type>
5.0.0
-
<license-required>true</license-required>
-
<managedconnectionfactory-class>com.ibm.connector2.cics.ECIManagedConnectionFactory</managedconnectionfactory-class>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.ibm.connector2.cics.ECIConnectionFactory</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>com.ibm.connector2.cics.ECIConnection</connection-impl-class>
<transaction-support>LocalTransaction</transaction-support>
- <config-property>
ServerName
<config-property-name>ServerName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
ConnectionURL
<config-property-name>ConnectionURL</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
PortNumber
<config-property-name>PortNumber</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>2006</config-property-value>
</config-property>
- <config-property>
UserName
<config-property-name>UserName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
Password
<config-property-name>Password</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
ClientSecurity
<config-property-name>ClientSecurity</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
ServerSecurity
<config-property-name>ServerSecurity</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
KeyRingClass
<config-property-name>KeyRingClass</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
KeyRingPassword
<config-property-name>KeyRingPassword</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
TranName
<config-property-name>TranName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
TPNName
<config-property-name>TPNName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value />
</config-property>
- <config-property>
TraceLevel
<config-property-name>TraceLevel</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
<config-property-value>1</config-property-value>
</config-property>
- <authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>true</reauthentication-support>
- <security-permission>
<security-permission-spec>grant { permission java.net.SocketPermission "*", "resolve"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.util.PropertyPermission "*", "read, write"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.io.FilePermission "${user.home}${file.separator}ibm${file.separator}ctg${file.separator}-", "read,write,delete"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.lang.RuntimePermission "loadLibrary.*"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.lang.RuntimePermission "shutdownHooks"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.lang.RuntimePermission "modifyThread"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.lang.RuntimePermission "modifyThreadGroup"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.lang.RuntimePermission "readFileDescriptor"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.lang.RuntimePermission "writeFileDescriptor"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.security.SecurityPermission "putProviderProperty.IBMJSSE"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission java.security.SecurityPermission "insertProvider.IBMJSSE"; };</security-permission-spec>
</security-permission>
- <security-permission>
<security-permission-spec>grant { permission javax.security.auth.PrivateCredentialPermission "javax.resource.spi.security.PasswordCredential * \"*\" ","read"; };</security-permission-spec>
</security-permission>