java.lang.ClassCastException when connecting to CICS
 Technote (FAQ)
 
Problem
Customer experienced a java.lang.ClassCastException while running a CICS application.
 
Cause
Customer had a jar packaged within the ear file that contained classes that were also part of the application server classpath. For example jca.jar or connector.jar contained classes that matched those seen in ws390srt.jar.

For this problem the classcast was occurring because javax.resource.cci.ConnectionFactory was being used by the application, and was located in connector.jar which was packaged within the customers ear. The ws390srt.jar which is located on the application server classpath also contained javax.resource.cci.ConnectionFactory

 
Solution
The customer was able to resolve the problem by either removing the connector.jar from the ear file before deploying it through the SMEUI, or by changing the classloader mode from application mode to compatibility.

The customer set

com.ibm.ws390.server.classloadermode=1

in the jvm.properties for the application server.

 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > DB Connections/Connection Pooling
Operating system(s): z/OS
Software version: 4.0.1
Software edition:
Reference #: 1107532
IBM Group: Software Group
Modified date: Mar 8, 2004