Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336553 - Cannot add the JPA facet to an imported project that is not in the workspace
Summary: Cannot add the JPA facet to an imported project that is not in the workspace
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.3.4   Edit
Assignee: Paul Fullbright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 13:55 EST by Karen Butzke CLA
Modified: 2011-02-11 17:28 EST (History)
1 user (show)

See Also:


Attachments
patch for maintenance stream (6.67 KB, patch)
2011-02-11 16:03 EST, Paul Fullbright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.