IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this forum will no longer be available. More details available on our FAQ.
Topic
  • No replies
Suvankar Brahmachari
1 Post

Pinned topic ClassCastException in IBM MQ RA 9.1.0.2 with Weblogic 12c

‏2019-04-12T07:58:17Z |

I am trying to deploy MQ rar as application in weblogic and getting below exception from ibm.mq.connector jar. When I explored the class DefaultRuntimeHelperImpl I see it's properly implementing interface JCARuntimeHelper. Then why this class cast exception is coming.

 

<12 Apr, 2019 12:49:22,556 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "90989756395942" for task "7" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.ClassCastException: com.ibm.mq.connector.DefaultRuntimeHelperImpl cannot be cast to com.ibm.mq.connector.JCARuntimeHelper"
weblogic.application.ModuleException: java.lang.ClassCastException: com.ibm.mq.connector.DefaultRuntimeHelperImpl cannot be cast to com.ibm.mq.connector.JCARuntimeHelper
        at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123)
        at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114)
        at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:212)
        at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:207)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassCastException: com.ibm.mq.connector.DefaultRuntimeHelperImpl cannot be cast to com.ibm.mq.connector.JCARuntimeHelper
        at com.ibm.mq.connector.ResourceAdapterImpl.loadJCARuntimeHelper(ResourceAdapterImpl.java:1413)
        at com.ibm.mq.connector.ResourceAdapterImpl.isDeployedInWAS(ResourceAdapterImpl.java:1354)
        at com.ibm.mq.connector.ResourceAdapterImpl.<clinit>(ResourceAdapterImpl.java:216)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)