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

Bug 334156

Summary: Jar with main class in manifest placed in WEB-INF/lib being treated as an application client
Product: [WebTools] WTP Java EE Tools Reporter: Hari Shankar <hshanka>
Component: jst.j2eeAssignee: Hari Shankar <hshanka>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc
Version: unspecifiedFlags: cbridgha: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
patch ccc: iplog+

Description Hari Shankar CLA 2011-01-12 14:09:23 EST
Build Identifier: 323

If you place a Jar with main class in manifest placed in WEB-INF/lib of a web project, it is being treated as an application client during deployment. The issue is in the way JavaEEArchiveUtilities figures out whether a class is a plain jar or an app client. 


Reproducible: Always
Comment 1 Hari Shankar CLA 2011-01-12 14:09:47 EST
Created attachment 186661 [details]
patch

This patch leverages earlier changes made in this area for EAR library feature, to fix the web lib scenario.
Comment 2 Hari Shankar CLA 2011-01-12 21:02:31 EST
Created attachment 186695 [details]
patch

updated patch
Comment 3 Chuck Bridgham CLA 2011-01-12 22:38:17 EST
approved
Comment 4 Carl Anderson CLA 2011-01-12 23:30:01 EST
Committed to R3_2_maintenance and HEAD for WTP 3.2.3 and WTP 3.3 M5