geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Seele (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMODEVTOOLS-798) ClassCastException deploying EAR under eclipse 3.8 & 4.2 with geronimo-3
Date Thu, 05 Jul 2012 12:57:34 GMT
Michael Seele created GERONIMODEVTOOLS-798:
----------------------------------------------

             Summary: 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


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

        

Mime
View raw message