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

Bug 369832

Summary: Add session bean should not always create a ejbModule source folder in the client project
Product: [WebTools] WTP EJB Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: jst.ejbAssignee: Roberto Sanchez Herrera <shr31223>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: normal    
Priority: P3 CC: cbridgha, ccc, makandre
Version: 3.2.5PFlags: cbridgha: review+
Target Milestone: 3.2.5 P   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 369444    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch none

Description Roberto Sanchez Herrera CLA 2012-01-26 11:42:07 EST
Bug to backport fix to WTP 3.2.5 P

+++ This bug was initially created as a clone of Bug #369444 +++

When a EJB project and its EJB client jar project have different source folders (e.g. EJB project has ejbModule, client has scr), and a session bean is created, the interfaces are not created in the existing source folder, but a source folder with the same name as the source folder in the EJB project is created, leaving the EJB client project with two source folders.

Steps to recreate:

1. Import the attached EAR file. Note that the EJB project has one scource folder: ejbModule, and the client has one source folder: src. Also note that both folders have java files.
2. Create a new session bean, including local and/or remote business interfaces.
3. Note that a new source folder (ejbModule) is created in the client project, instead of using the existing folder. Now, the EJB client project has two different source folders.
Comment 1 Roberto Sanchez Herrera CLA 2012-01-26 12:43:02 EST
Created attachment 210136 [details]
Proposed patch
Comment 2 Chuck Bridgham CLA 2012-01-26 12:46:34 EST
approved
Comment 3 Carl Anderson CLA 2012-01-26 17:26:48 EST
Committed to R3_2_5_patches