Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-881

Class cast exception when running JCA Integration sample

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Resources
    • Labels:
      None
    • Environment:

      CXF running as a shared library in WebSphere Application Server V6.1

      Description

      JCA code, it looks like CXF is doing improper casting.
      It should be casting the resource adapter to a javax.resource.spi.ResourceAdapter, but
      rather it is casting to is own implementation which is failing.

      Trace: 2007/07/23 20:26:00.078 01 t=8C5B00 c=UNK key=P8 (13007002)
      ThreadId: 00000022
      FunctionName: com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl
      SourceId: com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl
      Category: SEVERE
      ExtendedMessage: BBOO0220E: J2CA0009E: An exception occurred while trying to instantiate the ManagedConnectionFactory class org.ap
      ache.cxf.jca.cxf.AssociatedManagedConnectionFactoryImpl used by resource CXFConnectionFactory class org.ap
      urceAdapterInternalException: ResourceAdapter is not correct, it should be instof ResourceAdapterImpl
      at org.apache.cxf.jca.cxf.AssociatedManagedConnectionFactoryImpl.setResourceAd
      at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl.createMCFandPM(Connectio
      at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl.processObjectInstance(Co
      at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFa
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:316)
      at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.
      at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.jav
      at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl
      at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1947)
      at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
      at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
      at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory$1.run(IndirectJndiLo
      at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.jav
      at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstanceExt
      at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstance(In
      at com.ibm.ws.util.ResRefJndiLookupObjectFactory.getObjectInstance(ResRefJndiL
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:316)
      at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rohithashok Rohith Ashok
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: