You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Srepfler Srgjan (JIRA)" <ji...@codehaus.org> on 2006/11/23 21:14:31 UTC
[jira] Created: (MECLIPSE-196) Project "Could not publish to
server"
Project "Could not publish to server"
-------------------------------------
Key: MECLIPSE-196
URL: http://jira.codehaus.org/browse/MECLIPSE-196
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: WTP support
Affects Versions: 2.3
Environment: Eclipse 3.2.1 and WTP 1.5.2, JBoss AS 4.0.4.GA, J2EE appliaction comprized of an EJB and Web module, all bundled withing an EAR module.
Reporter: Srepfler Srgjan
After I modify the EAR project configuration in order to remove problems on the EAR project (the plugin adds the Java project facet and I must modify by hand the org.eclipse.wst.common.project.facet.core.xml file in order the remove it,this should be a separate JIRA I think) my project can get built (no red decorators on the projects). However, I add the server definition and when I try to publish the project I get an error "Could not publish to the server." with the following Exception Stack Trace:
Error
Thu Nov 23 20:56:58 CET 2006
Could not publish to the server.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(J2EEFlexProjDeployable.java:528)
at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(J2EEFlexProjDeployable.java:135)
at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(ComponentDeployable.java:347)
at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:193)
at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:160)
at org.eclipse.jst.server.generic.core.internal.publishers.EarModuleAssembler.assemble(EarModuleAssembler.java:36)
at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:124)
at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:109)
at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:91)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
I don't see people complaining so perhaps it's my fault. Any ideas? If more info is needed please ask.
I can start the server with no problems and it's on a path with no spaces.
Thanks Srgjan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-196) Project "Could not publish to
server"
Posted by "Denis Zjukow (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139491#action_139491 ]
Denis Zjukow commented on MECLIPSE-196:
---------------------------------------
Hello,
I am facing exactly the same problem. Eclipse throws an IndexOutOfBoundsException when trying to deploy my EAR project (which depends on EJB project) to JBoss AS 4.2.2.GA. I am using Eclipse Europa and Maven 2.0.8. I see there seems to be a workaround for this problem (Tim West posted a comment about that a year ago). However, I am not an expert in Eclipse plugin development, so this description is not enough for me. Can anyone explain how to solve this problem step by step or provide with links where I could find the solution, please. Any help is highly appreciated. Thanks.
> Project "Could not publish to server"
> -------------------------------------
>
> Key: MECLIPSE-196
> URL: http://jira.codehaus.org/browse/MECLIPSE-196
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.3
> Environment: Eclipse 3.2.1 and WTP 1.5.2, JBoss AS 4.0.4.GA, J2EE appliaction comprized of an EJB and Web module, all bundled withing an EAR module.
> Reporter: Srepfler Srgjan
>
> After I modify the EAR project configuration in order to remove problems on the EAR project (the plugin adds the Java project facet and I must modify by hand the org.eclipse.wst.common.project.facet.core.xml file in order the remove it,this should be a separate JIRA I think) my project can get built (no red decorators on the projects). However, I add the server definition and when I try to publish the project I get an error "Could not publish to the server." with the following Exception Stack Trace:
> Error
> Thu Nov 23 20:56:58 CET 2006
> Could not publish to the server.
> org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
> at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
> at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(J2EEFlexProjDeployable.java:528)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(J2EEFlexProjDeployable.java:135)
> at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(ComponentDeployable.java:347)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:193)
> at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:160)
> at org.eclipse.jst.server.generic.core.internal.publishers.EarModuleAssembler.assemble(EarModuleAssembler.java:36)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:124)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:109)
> at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:91)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
> at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> I don't see people complaining so perhaps it's my fault. Any ideas? If more info is needed please ask.
> I can start the server with no problems and it's on a path with no spaces.
> Thanks Srgjan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-196) Project "Could not publish to
server"
Posted by "Jose CHILLAN (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106395 ]
Jose CHILLAN commented on MECLIPSE-196:
---------------------------------------
I had the same project, but the point is I this the projet si not in the files, but elsewhere in eclipse.
What I did is to remove the ./metadata/.plugin of my workspace, relaunch eclipse, reimport the projects,
attach the ear to a newly created server, and after this : the deployment what working !!!
This means the issue has to come from a bad synchronization in project's data and wtp internal data.
I didn't have the time to isolate the plugin data that cause the problem but a dichotomy should easily
help determining it.
> Project "Could not publish to server"
> -------------------------------------
>
> Key: MECLIPSE-196
> URL: http://jira.codehaus.org/browse/MECLIPSE-196
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.3
> Environment: Eclipse 3.2.1 and WTP 1.5.2, JBoss AS 4.0.4.GA, J2EE appliaction comprized of an EJB and Web module, all bundled withing an EAR module.
> Reporter: Srepfler Srgjan
>
> After I modify the EAR project configuration in order to remove problems on the EAR project (the plugin adds the Java project facet and I must modify by hand the org.eclipse.wst.common.project.facet.core.xml file in order the remove it,this should be a separate JIRA I think) my project can get built (no red decorators on the projects). However, I add the server definition and when I try to publish the project I get an error "Could not publish to the server." with the following Exception Stack Trace:
> Error
> Thu Nov 23 20:56:58 CET 2006
> Could not publish to the server.
> org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
> at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
> at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(J2EEFlexProjDeployable.java:528)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(J2EEFlexProjDeployable.java:135)
> at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(ComponentDeployable.java:347)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:193)
> at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:160)
> at org.eclipse.jst.server.generic.core.internal.publishers.EarModuleAssembler.assemble(EarModuleAssembler.java:36)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:124)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:109)
> at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:91)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
> at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> I don't see people complaining so perhaps it's my fault. Any ideas? If more info is needed please ask.
> I can start the server with no problems and it's on a path with no spaces.
> Thanks Srgjan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-196) Project "Could not publish to
server"
Posted by "David Rabinowitz (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-196?page=comments#action_81966 ]
David Rabinowitz commented on MECLIPSE-196:
-------------------------------------------
Happens to me as well, with or without the JBoss IDE (2.0.0beta2)
> Project "Could not publish to server"
> -------------------------------------
>
> Key: MECLIPSE-196
> URL: http://jira.codehaus.org/browse/MECLIPSE-196
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.3
> Environment: Eclipse 3.2.1 and WTP 1.5.2, JBoss AS 4.0.4.GA, J2EE appliaction comprized of an EJB and Web module, all bundled withing an EAR module.
> Reporter: Srepfler Srgjan
>
> After I modify the EAR project configuration in order to remove problems on the EAR project (the plugin adds the Java project facet and I must modify by hand the org.eclipse.wst.common.project.facet.core.xml file in order the remove it,this should be a separate JIRA I think) my project can get built (no red decorators on the projects). However, I add the server definition and when I try to publish the project I get an error "Could not publish to the server." with the following Exception Stack Trace:
> Error
> Thu Nov 23 20:56:58 CET 2006
> Could not publish to the server.
> org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
> at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
> at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(J2EEFlexProjDeployable.java:528)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(J2EEFlexProjDeployable.java:135)
> at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(ComponentDeployable.java:347)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:193)
> at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:160)
> at org.eclipse.jst.server.generic.core.internal.publishers.EarModuleAssembler.assemble(EarModuleAssembler.java:36)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:124)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:109)
> at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:91)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
> at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> I don't see people complaining so perhaps it's my fault. Any ideas? If more info is needed please ask.
> I can start the server with no problems and it's on a path with no spaces.
> Thanks Srgjan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-196) Project "Could not publish to
server"
Posted by "Tim West (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99159 ]
Tim West commented on MECLIPSE-196:
-----------------------------------
I've had this problem also and have found a workaround as described below. Seems this has to do with WTP generation of ".settings/org.eclipse.wst.common.component" and non-generation of ".settings/.component".
My setup is that I'm using mvn eclipse:clean eclipse:eclipse to generate artefacts, and I have WTP 1.5 enabled in my active profile in my local settings.xml:
<profiles>
<profile>
<id>theProfile</id>
<properties>
<wtpversion>1.5</wtpversion>
</properties>
I have an EAR project that contains an EJB JAR and several library JARs which I'm developing in Eclipse. In this situation, immediately after running mvn eclipse:eclipse, I get the error reported in this defect. I can get around this by adding a known-good ".settings/.component" file for each project (the EAR, EJB JAR and library JARs). The contents of the .component file are "known good" from pre-Maven2. Once I do this, I can build and deploy the EAR successfully.
Also, I can remove the ".settings/org.eclipse.wst.common.component" file that mvn eclipse:eclipse generates - this is apparently unneeded for these projects.
> Project "Could not publish to server"
> -------------------------------------
>
> Key: MECLIPSE-196
> URL: http://jira.codehaus.org/browse/MECLIPSE-196
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.3
> Environment: Eclipse 3.2.1 and WTP 1.5.2, JBoss AS 4.0.4.GA, J2EE appliaction comprized of an EJB and Web module, all bundled withing an EAR module.
> Reporter: Srepfler Srgjan
>
> After I modify the EAR project configuration in order to remove problems on the EAR project (the plugin adds the Java project facet and I must modify by hand the org.eclipse.wst.common.project.facet.core.xml file in order the remove it,this should be a separate JIRA I think) my project can get built (no red decorators on the projects). However, I add the server definition and when I try to publish the project I get an error "Could not publish to the server." with the following Exception Stack Trace:
> Error
> Thu Nov 23 20:56:58 CET 2006
> Could not publish to the server.
> org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
> at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
> at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(J2EEFlexProjDeployable.java:528)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(J2EEFlexProjDeployable.java:135)
> at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(ComponentDeployable.java:347)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:193)
> at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:160)
> at org.eclipse.jst.server.generic.core.internal.publishers.EarModuleAssembler.assemble(EarModuleAssembler.java:36)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:124)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:109)
> at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:91)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
> at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> I don't see people complaining so perhaps it's my fault. Any ideas? If more info is needed please ask.
> I can start the server with no problems and it's on a path with no spaces.
> Thanks Srgjan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-196) Project "Could not publish to
server"
Posted by "Guillaume (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137178#action_137178 ]
Guillaume commented on MECLIPSE-196:
------------------------------------
Hello,
I am currently restructuring some projets (own lib, webApp, entApp) to be Maven 2 compliant.
I use RAD 7 and WebSphere 6.1 appSrv.
The projects were already existing within RAD, I just got back the famous application.xml, retrieved the commands / natures / facets configured in RAD configuration files to include them in the POM.
And.... @publishing time I exactly get the same issue:
!ENTRY com.ibm.ws.ast.st.v61.core 4 0 2008-06-03 09:13:49.014
!MESSAGE Could not publish to the server.
!STACK 0
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(Unknown Source)
at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(Unknown Source)
at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(Unknown Source)
at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getUtilityModuleReferences(Unknown Source)
at com.ibm.etools.wrd.websphere.internal.operations.LooseConfigUpdateOperation.addLooseApplicationContents(Unknown Source)
If needed I can attach the pom from the web application and the one from the enterprise app.
Thanx & Best Regards,
Guillaume.
> Project "Could not publish to server"
> -------------------------------------
>
> Key: MECLIPSE-196
> URL: http://jira.codehaus.org/browse/MECLIPSE-196
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.3
> Environment: Eclipse 3.2.1 and WTP 1.5.2, JBoss AS 4.0.4.GA, J2EE appliaction comprized of an EJB and Web module, all bundled withing an EAR module.
> Reporter: Srepfler Srgjan
>
> After I modify the EAR project configuration in order to remove problems on the EAR project (the plugin adds the Java project facet and I must modify by hand the org.eclipse.wst.common.project.facet.core.xml file in order the remove it,this should be a separate JIRA I think) my project can get built (no red decorators on the projects). However, I add the server definition and when I try to publish the project I get an error "Could not publish to the server." with the following Exception Stack Trace:
> Error
> Thu Nov 23 20:56:58 CET 2006
> Could not publish to the server.
> org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
> at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
> at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(J2EEFlexProjDeployable.java:528)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(J2EEFlexProjDeployable.java:135)
> at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(ComponentDeployable.java:347)
> at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:193)
> at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:160)
> at org.eclipse.jst.server.generic.core.internal.publishers.EarModuleAssembler.assemble(EarModuleAssembler.java:36)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:124)
> at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:109)
> at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:91)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
> at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
> at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
> at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> I don't see people complaining so perhaps it's my fault. Any ideas? If more info is needed please ask.
> I can start the server with no problems and it's on a path with no spaces.
> Thanks Srgjan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira