WebSphere:与javax.resource.spi.ResourceAdapter不兼容

WebSphere:与javax.resource.spi.ResourceAdapter不兼容,websphere,classcastexception,websphere-8,Websphere,Classcastexception,Websphere 8,我们正在尝试在WAS8.5应用服务器中部署.ear。在应用程序启动期间,不兼容的ResourceAdapter会引发错误。完整的堆栈跟踪在这里。 可能的原因是什么?任何指针都会大有帮助。提前谢谢 J2CA0043E: An Exception occurred while trying to instantiate a ResourceAdapterJavaBean instance for the installed ResourceAdapter defined by key cells/u

我们正在尝试在WAS8.5应用服务器中部署.ear。在应用程序启动期间,不兼容的ResourceAdapter会引发错误。完整的堆栈跟踪在这里。 可能的原因是什么?任何指针都会大有帮助。提前谢谢

J2CA0043E: An Exception occurred while trying to instantiate a ResourceAdapterJavaBean instance for the installed ResourceAdapter defined by key cells/ux9039Cell01/applications/globalmc-mq-ear.ear/deployments/globalmc-mq-ear/deployment.xml#J2CResourceAdapter_1423058973553.

The exception is: java.lang.ClassCastException: com.gdc.ps.frd.globalmc.ra.NextRecordResourceAdapterImpl incompatible with javax.resource.spi.ResourceAdapter**
at com.ibm.ejs.j2c.RAWrapperImpl.createAndConfigureRA(RAWrapperImpl.java:2236)
at com.ibm.ejs.j2c.RAWrapperImpl.startRA(RAWrapperImpl.java:712)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA(RALifeCycleManagerImpl.java:1170)
...

FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDCIncident emitted on /apps/WAS8.5/IBM/WebSphere/AppServer/profiles/FFMNode/logs/ffdc/FFMUxSrvr_87506fa8_15.02.05_04.29.59.6196455942349878479476.txt com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA 1324
[2/5/15 4:29:59:700 CST] 0000007e RALifeCycleMa E   J2CA0128E: An Exception occurred while trying to start ResourceAdapter cells/ux9039Cell01/applications/globalmc-mq-ear.ear/deployments/globalmc-mq-ear/deployment.xml#J2CResourceAdapter_1423058973553. T**he exception is: java.lang.ClassCastException:** com.gdc.ps.frd.globalmc.ra.NextRecordResourceAdapterImpl incompatible with javax.resource.spi.ResourceAdapter
at com.ibm.ejs.j2c.RAWrapperImpl.createAndConfigureRA(RAWrapperImpl.java:2236)
at com.ibm.ejs.j2c.RAWrapperImpl.startRA(RAWrapperImpl.java:712)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA(RALifeCycleManagerImpl.java:1170)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.resourceProviderEvent(RALifeCycleManagerImpl.java:884)

该错误表示com.gdc.ps.frd.globalmc.ra.NextRecordResourceAdapterImpl不是javax.resource.spi.ResourceAdapter


您的配置中是否有断言此类表示JCA资源适配器的内容?看起来不是这样。

我认为您有多个javax.resource.spi.ResourceAdapter类的副本。基本上,多个JAR具有相同的类,这导致了问题。

是的,它实现了javax.resource.spi.ResourceAdapter。另外,具有ResourceAdapter类的jar thinclient.jar位于WAS中应用程序使用的sharedlib位置。WAS与此有关系吗?是的,一开始我也这么认为,但当我在所有库中进行广泛搜索时,应用程序使用的是共享库。这个类只有一个jar。这会是来自WAS的冲突吗?如果是这样,WAS中是否有消除冲突的设置?您不应该只查看共享库。看看你的内心/耳朵。也看看服务器库!!ear也没有冲突的类。是的,我的嫌疑人也在WAS服务器上,但是可以触摸WAS LIB吗?如果是这样,它不会影响其他应用程序吗?还是有办法做到这一点?