Download
Abstract
ClassCastException errors may occur during deployment code generation or during RMIC invocation.
Download Description
PK71855 resolves the following problem:
ERROR DESCRIPTION:?
This APAR will be used to correct the following two problems that may occur when using IBM® WebSphere® Application Serverv7.0 EJBDeploy:
1) java.lang.ClassCastException:
org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to
org.eclipse.jst.javaee.application.Application
2) Bad EJB Stubs generated for HP-UX that can lead to a java.lang.ClassCastException at runtime, similar to:
java.lang.ClassCastException: $Proxy34 cannot be cast to
com.sun.ts.tests.ejb.ee.timer.helper.
EJSRemoteCMPcom_sun_ts_tests_ejb_ee_timer_enHome_fcf0fa93
at com.sun.ts.tests.ejb.ee.timer.helper.
_EJSRemoteCMPcom_sun_ts_tests_ejb_ee_timer_enHome_fcf0fa93_Stub.
create(Unknown Source)
at com.sun.ts.tests.ejb.ee.timer.entity.cmp20.
TestBeanEJB.createFlagStoreAndTimer(TestBeanEJB.java:434)
at com.sun.ts.tests.ejb.ee.timer.entity.cmp20.
EJSRemoteCMPcom_sun_ts_tests_ejb_ee_timer_en_c02be7db.
createFlagStoreAndTimer(Unknown Source)
at com.sun.ts.tests.ejb.ee.timer.entity.cmp20.
_EJSRemoteCMPcom_sun_ts_tests_ejb_ee_timer_en_c02be7db_Tie.
_invoke(Unknown Source)
at com.ibm.CORBA.iiop.ServerDelegate.
dispatchInvokeHandler(ServerDelegate.java:622)
at com.ibm.CORBA.iiop.ServerDelegate.
dispatch(ServerDelegate.java:475)
at com.ibm.rmi.iiop.ORB.process(ORB.java:504)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2771)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2640)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
This APAR fix also requires the following prerequisite fixes:
1) APAR PK71773.
2) For the iSeries platform:
V5R4: 5722JV1 SI32980
V6R1: 5761JV1 SI32981
LOCAL FIX:?
PROBLEM SUMMARY:?
USERS AFFECTED:
All users of the WebSphere Application Server V7.0 EJBDeploy code generation tool.
PROBLEM DESCRIPTION:
ClassCastException errors may occur during deployment code generation or during RMIC invocation.
RECOMMENDATION:
None
A ClassCastException may occur during deployment code generation and the underlying Eclipse WTP functionality and is documented here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243832
A ClassCastException may also occur on the HPUX or iSeries platforms during RMIC code generation that will look similar to the following:
java.lang.ClassCastException: $Proxy34 cannot be cast to com.sun.ts.tests.ejb.ee.timer.helper.
EJSRemoteCMPcom_sun_ts_tests_ejb_ee_timer_enHome_fcf0fa93
at com.sun.ts.tests.ejb.ee.timer.helper.
_EJSRemoteCMPcom_sun_ts_tests_ejb_ee_timer_enHome_fcf0fa93_Stub.create(Unknown Source)
PROBLEM CONCLUSION:?
EJBDeploy has updated the Eclipse WTP version to include the fix for the ClassCastException that can occur during deployment code generation. As well, a special case has been added for the HP-UX® and iSeries RMIC invocation to make sure the ibmtools.jar and tools.jar from the JDK are included on
the classpath of RMIC.
The fix for this APAR is currently targeted for inclusion in fixpack 7.0.0.1.
Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Prerequisites
Please download the UpdateInstaller below to install this fix.
Installation Instructions
Please review the readme.txt for detailed installation instructions.
Download Package
Download package
What is Fix Central (FC)?
What is DD?
Download | RELEASE DATE | LANGUAGE | SIZE(Bytes) | Download Options | ||
---|---|---|---|---|---|---|
7.0-WS-WAS-IFPK71855 | 09-22-2008 | US English | 45690 | FC | FTP | DD |
Technical Support
Contact IBM Support using SR (http://www-306.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV(U.S. only).
Problems (APARS) fixed
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg24020601