Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336553

Summary: Cannot add the JPA facet to an imported project that is not in the workspace
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Paul Fullbright <paul.fullbright>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: 2.3.4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for maintenance stream none

Description Karen Butzke CLA 2011-02-07 13:55:54 EST
Choose File -> Import
Choose General-Existing Projects into Workspace
Select a root directory that contains a java project and choose that project in the list. Do not check 'copy projects into workspace'.
Now attempt to make the project a faceted project adding the java and JPA facets.

It fails with the following exception:


Caused by: org.eclipse.core.commands.ExecutionException: No container path specified
at org.eclipse.jpt.core.internal.operations.AbstractJpaFileCreationOperation.getContainer(AbstractJpaFileCreationOperation.java:67)
at org.eclipse.jpt.core.internal.operations.AbstractJpaFileCreationOperation.getProject(AbstractJpaFileCreationOperation.java:73)
at org.eclipse.jpt.core.internal.operations.AbstractJpaFileCreationOperation.getSchedulingRule(AbstractJpaFileCreationOperation.java:125)
... 22 more
Comment 1 Paul Fullbright CLA 2011-02-11 15:11:34 EST
This is an error in the way that folders are calculated.

Also exists in maintenance stream.
Comment 2 Paul Fullbright CLA 2011-02-11 16:03:19 EST
Created attachment 188816 [details]
patch for maintenance stream
Comment 3 Paul Fullbright CLA 2011-02-11 17:28:07 EST
committed fixes to maintenance and head streams.