WebSphere Application Server - ClassCastException during Ear deployment

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2006 > ClassCastException during Ear deployment





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ClassCastException during Ear deployment

2006-09-16, 1:48 pm

Specifically:
java.lang.ClassCastException: com/ibm/etools/j2ee/commonarchivecore/impl/FileImpl incompatible with com/ibm/etools/j2ee/commonarchivecore/Archive

When attempting to deploy an ear into Websphere 6.0.2.3 through the admin console, the deployment halts with a class cast exception. I tried installing the latest fix pack (6.0.2.13) on a new development server, however that did not resolve the issue.

The ear successfully passes the Websphere ant validation task com.ibm.websphere.ant.tasks.ModuleValidator.

Looking for some suggestions on other things to try. Thanks.

[9/14/06 13:25:06:493 CDT] 00000063 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: Setting project description. [severity -]
[9/14/06 13:25:07:993 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: java.lang.ClassCastException: com/ibm/etools/j2ee/commonarchivecore/impl/FileImpl incompatible with com/ibm/etools/j2ee/commonarchivecore/Arch
ive [severity -]
[9/14/06 13:25:09:368 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: at com.ibm.etools.archive.ear.operations.EARImportOperation.fixupClasspath(EARImportOperation.java:185) [severity -]
[9/14/06 13:25:09:368 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: at com.ibm.etools.archive.ear.operations.EARImportOperation.fixupClasspaths(EARImportOperation.java:166) [severity -]
[9/14/06 13:25:09:368 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: at com.ibm.etools.archive.ear.operations.EARImportOperation.doExecute(EARImportOperation.java:135) [severity -]
[9/14/06 13:25:09:383 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: at com.ibm.etools.archive.j2ee.operations.J2EEImportOperation.execute(J2EEImportOperation.java:45) [severity -]
[9/14/06 13:25:09:383 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: at com.ibm.wtp.common.operation.WTPOperation.doRun(WTPOperation.java:267) [severity -]
[9/14/06 13:25:09:383 CDT] 00000082 DeployEJBTask W ADMA0087W: A warning is issued from the EJBDeploy program: at com.ibm.wtp.common.operation.WTPOperation$1.run(WTPOperation.java:181) [severity -]

2006-09-19, 1:35 pm

Found the issue, posting a followup here in case anyone else runs into this.

What had happened was a developer added the key file for a third party library to the classpath in an EJB jar Manifest. Websphere apparently tried to load this key file as a Java archive and through the resulting ClassCastException.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com