Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8049797B9 for ; Wed, 11 Jul 2012 09:46:38 +0000 (UTC) Received: (qmail 80762 invoked by uid 500); 11 Jul 2012 09:46:36 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 80189 invoked by uid 500); 11 Jul 2012 09:46:36 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 80018 invoked by uid 99); 11 Jul 2012 09:46:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 09:46:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E77F1142856 for ; Wed, 11 Jul 2012 09:46:34 +0000 (UTC) Date: Wed, 11 Jul 2012 09:46:34 +0000 (UTC) From: "Yi Xiao (JIRA)" To: dev@geronimo.apache.org Message-ID: <406377556.34400.1341999994950.JavaMail.jiratomcat@issues-vm> In-Reply-To: <63311946.8320.1341493055613.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (GERONIMODEVTOOLS-798) ClassCastException deploying EAR under eclipse 3.8 & 4.2 with geronimo-3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411352#comment-13411352 ] Yi Xiao commented on GERONIMODEVTOOLS-798: ------------------------------------------ Hi Michael, Thank you for your patch. I'm not sure if your patch will effect the previous eclipse, I will investigate the issue in these days. > ClassCastException deploying EAR under eclipse 3.8 & 4.2 with geronimo-3 > ------------------------------------------------------------------------ > > Key: GERONIMODEVTOOLS-798 > URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-798 > Project: Geronimo-Devtools > Issue Type: Bug > Components: eclipse-plugin > Affects Versions: 3.0-beta-1 > Environment: Eclipse Version: 3.8.0 (Build id: I20120608-1200) > Apache Geronimo v3.0 Server Adapter Version: 3.0.0-20111130113455 > Eclipse Web Developer Tools Version: 3.4.0.v201203141800-7O7MFsGEMkBJz0rWbgfTLwn-4WKIocbP_pkka3Il (Build id: 20110922230524) > geronimo-tomcat7-javaee6-3.0-beta-1 > Reporter: Michael Seele > Assignee: Yi Xiao > Attachments: patch.txt > > Original Estimate: 10m > Remaining Estimate: 10m > > When you try to deploy an simple EAR under eclipse 3.8 or 4.2 into geronimo 3 you got a ClassCastException. > The problem is that org.apache.geronimo.st.core.DeploymentUtils set's a IProject into the model instad of a String (please see the attached Patch). > If you want to try this you can use the sample project from here: https://issues.apache.org/jira/secure/attachment/12535175/eclipseProjects.tgz > This is the Exception you get: > java.lang.ClassCastException: org.eclipse.core.internal.resources.Project cannot be cast to java.lang.String > at org.eclipse.jst.j2ee.internal.archive.operations.JavaEEComponentExportOperation.getModuleParticipants(JavaEEComponentExportOperation.java:67) > at org.eclipse.jst.j2ee.internal.archive.operations.JavaEEComponentExportOperation.getParticipants(JavaEEComponentExportOperation.java:43) > at org.eclipse.jst.j2ee.internal.archive.operations.JavaEEComponentExportOperation.createFlatComponentArchiver(JavaEEComponentExportOperation.java:91) > at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExportOperation.export(ComponentExportOperation.java:191) > at org.eclipse.jst.j2ee.internal.archive.operations.ComponentExportOperation.execute(ComponentExportOperation.java:136) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:385) > at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:410) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:360) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:247) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:219) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89) > at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:207) > at org.apache.geronimo.st.core.DeploymentUtils.createJarFile(DeploymentUtils.java:143) > at org.apache.geronimo.st.core.commands.DeployCommand.getTargetFile(DeployCommand.java:51) > at org.apache.geronimo.st.core.commands.DistributeCommand.execute(DistributeCommand.java:75) > at org.apache.geronimo.st.core.commands.SynchronizedDeploymentOp.run(SynchronizedDeploymentOp.java:84) > at org.apache.geronimo.st.core.commands.SynchronizedDeploymentOp.execute(SynchronizedDeploymentOp.java:76) > at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.distribute(GeronimoServerBehaviourDelegate.java:717) > at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.doAdded(GeronimoServerBehaviourDelegate.java:480) > at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.invokeCommand(GeronimoServerBehaviourDelegate.java:441) > at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModule(GeronimoServerBehaviourDelegate.java:318) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1046) > at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:273) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:955) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) > at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3108) > at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira