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

Bug 349741

Summary: Utility jars in EAR50/lib or EAR/ not listed in in EAR Java EE Module Dependencies
Product: [WebTools] WTP Java EE Tools Reporter: Diego Sahagun <diegosr>
Component: jst.j2eeAssignee: Diego Sahagun <diegosr>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, shr31223
Version: 3.0.5Flags: cbridgha: review+
ccc: review+
Target Milestone: 3.0.5 P   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix for Util Jar population and in-lib-dir checkbox in Java EE Module Dependencies page
none
Second patch proposal with a few improvements shr31223: iplog+

Description Diego Sahagun CLA 2011-06-17 18:08:14 EDT
Build Identifier: 3.4.2.R342_v20090122

More details coming soon

Reproducible: Always
Comment 1 Carl Anderson CLA 2011-06-17 21:46:28 EDT
Note that in WTP 3.1, the Java EE Module Dependencies was replaced by the Deployment Assembly properties page.
Comment 2 Roberto Sanchez Herrera CLA 2011-06-18 19:54:14 EDT
An adopter has reported this problem in WTP 305. The code to display these entries was introduced as part of bug 241335, but it looks like this code did not take into account the case where the EAR content directory is the EAR project itself (i.e. when the content directory field of the new EAR project is empty)
Comment 3 Diego Sahagun CLA 2011-06-22 17:22:21 EDT
Logic while showing Utility jars when the ear has no Content directory specified (root directory of the ear is the content dir) is not considered, also the logic to show whether if the Jar is in lib dir or not doesn't consider this case.
Comment 4 Diego Sahagun CLA 2011-06-22 17:28:44 EDT
Created attachment 198435 [details]
Fix for Util Jar population and in-lib-dir checkbox in Java EE Module Dependencies page
Comment 5 Chuck Bridgham CLA 2011-07-11 10:29:13 EDT
Diego - there were some problems with this initial patch...  let me know when you have resubmitted.
Comment 6 Diego Sahagun CLA 2011-08-23 15:04:14 EDT
Created attachment 202029 [details]
Second patch proposal with a few improvements
Comment 7 Chuck Bridgham CLA 2011-08-24 15:18:28 EDT
I reviewed the code - and it looks ok, but when I tested I have more questions.....

I see the jar's show up in the Ear's property page... but in the case of a lib directory set to root "", the Ear Libraries java container isn't working...  maybe this is a different problem.
Comment 8 Chuck Bridgham CLA 2011-08-24 15:48:34 EDT
ok my tests went ok....  I'm approving this
Comment 9 Roberto Sanchez Herrera CLA 2011-09-01 13:21:28 EDT
Code committed and released to R3_0_5_patches
Comment 10 Roberto Sanchez Herrera CLA 2011-09-01 13:24:17 EDT
Resolving because the code was already committed.