I configured a resource adapter (iseriespgmcall.rar) on WAS v6.1 on Linux to be used by an application. When the application attempted to do a Context lookup of the adapter, it ran into CannotInstantiateObjectException exception. Checking the configuration again and again, I still could not find what went wrong. Can anyone provide a solution or an approach to solve the problem please? See exception below. Thank you very much!

[11/12/09 9:30:41:302 CST] 00000047 ConnectionFac E J2CA0009E: An exception occurred while trying to instantiate the ManagedConnectionFactory class com.ibm.connector2.iseries.pgmcall.ISeriesPgmCallM anagedConnectionFactory used by resource eis/j2c_cmis : java.lang.ClassCastException: com.ibm.connector2.iseries.pgmcall.ISeriesPgmCallM anagedConnectionFactory incompatible with javax.resource.spi.ManagedConnectionFactory
at com.ibm.ejs.j2c.J2CUtilityClass.createMCFEntry(J2C UtilityClass.java:339)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl .createMCFandPM(ConnectionFactoryBuilderServerImpl .java:545)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl .processObjectInstance(ConnectionFactoryBuilderSer verImpl.java:916)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getOb jectInstance(ConnectionFactoryBuilderImpl.java:588 )
at javax.naming.spi.NamingManager.getObjectInstance(N amingManager.java:316)
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookupExt(Helpers.java:896)
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookup(Helpers.java:705)
at com.ibm.ws.naming.jndicos.CNContextImpl.processRes olveResults(CNContextImpl.java:2093)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(C NContextImpl.java:1947)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(C NContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt( CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNC ontextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCt x.java:172)
at javax.naming.InitialContext.lookup(InitialContext. java:363)
......

[11/12/09 9:30:41:376 CST] 00000047 Helpers W NMSV0605W: A javax.naming.Reference object looked up from the context "mgcol02Node01Cell/nodes/mgcol02Node01/servers/server1" with the name "eis/j2c_cmis" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
Reference Factory Class Name: com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl
Reference Factory Class Location URLs:
Reference Class Name: javax.resource.cci.ConnectionFactory
Type: connectorName
Content: j2c_cmis
Type: classpath
Content: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedConnectors/iseriespgmcall.rar:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedConnectors/iseriespgmcall.rar
Type: FactoryJndiName
Content: eis/j2c_cmis
Address Type: dd
AddressContents: ffffffac ffffffed 0 5 73 72 0 25 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 52 65 73 6f 75 72 63 65 ...
Address Type: miscProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ...
Address Type: poolProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 27 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: configProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 23 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: mmProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ...
Address Type: mbeanProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 1a 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 4d 42 65 61 6e 50 72 6f ...

Exception data follows:
java.lang.ClassCastException: com.ibm.connector2.iseries.pgmcall.ISeriesPgmCallM anagedConnectionFactory incompatible with javax.resource.spi.ManagedConnectionFactory
at com.ibm.ejs.j2c.J2CUtilityClass.createMCFEntry(J2C UtilityClass.java:339)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl .createMCFandPM(ConnectionFactoryBuilderServerImpl .java:545)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl .processObjectInstance(ConnectionFactoryBuilderSer verImpl.java:916)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getOb jectInstance(ConnectionFactoryBuilderImpl.java:588 )
at javax.naming.spi.NamingManager.getObjectInstance(N amingManager.java:316)
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookupExt(Helpers.java:896)
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookup(Helpers.java:705)
at com.ibm.ws.naming.jndicos.CNContextImpl.processRes olveResults(CNContextImpl.java:2093)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(C NContextImpl.java:1947)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(C NContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt( CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNC ontextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCt x.java:172)
at javax.naming.InitialContext.lookup(InitialContext. java:363)
......

[11/12/09 9:30:41:451 CST] 00000047 Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl
Context method: lookupExt
Context name: mgcol02Node01Cell/nodes/mgcol02Node01/servers/server1
Target name: eis/j2c_cmis
Other data: ""
Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectEx ception: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.ClassCastException: com.ibm.connector2.iseries.pgmcall.ISeriesPgmCallM anagedConnectionFactory incompatible with javax.resource.spi.ManagedConnectionFactory]
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookupExt(Helpers.java:1000)
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookup(Helpers.java:705)
at com.ibm.ws.naming.jndicos.CNContextImpl.processRes olveResults(CNContextImpl.java:2093)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(C NContextImpl.java:1947)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(C NContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt( CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNC ontextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCt x.java:172)
at javax.naming.InitialContext.lookup(InitialContext. java:363)
......
Caused by: java.lang.ClassCastException: com.ibm.connector2.iseries.pgmcall.ISeriesPgmCallM anagedConnectionFactory incompatible with javax.resource.spi.ManagedConnectionFactory
at com.ibm.ejs.j2c.J2CUtilityClass.createMCFEntry(J2C UtilityClass.java:339)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl .createMCFandPM(ConnectionFactoryBuilderServerImpl .java:545)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl .processObjectInstance(ConnectionFactoryBuilderSer verImpl.java:916)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getOb jectInstance(ConnectionFactoryBuilderImpl.java:588 )
at javax.naming.spi.NamingManager.getObjectInstance(N amingManager.java:316)
at com.ibm.ws.naming.util.Helpers.processSerializedOb jectForLookupExt(Helpers.java:896)
... 40 more