Community
Participate
Working Groups
One additional scenario- if the defined folder is the root of the project, the following exception occurs: java.lang.IllegalArgumentException: Path must include project and resource name: /MyBundle at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetInstallDataModelProvider.getDefaultProperty(EjbFacetInstallDataModelProvider.java:70) +++ This bug was initially created as a clone of Bug #357016 +++ Currently, if a Java EE facet is added to an existing ModuleCoreNature project, it overwrites the existing defaultRootSource with a new one, and does not take that defaultRootSource into account for the corresponding value. We need to respect previously set defaultRootSource values.
Created attachment 205552 [details] Fix patch
Comment on attachment 205552 [details] Fix patch I thought this was the bug to handle the 3.3.2 commit of bug 357016. When I cloned this, I should have modified the subject.
This is a minor fix that is only necessary in the R3_3_maintenance stream. It was put into both R3_2_maintenance and HEAD while WTP 3.3.1 was in shutdown.