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

Bug 335738

Summary: Jars main class in manifest not deploying properly inside WARs
Product: [WebTools] WTP Java EE Tools Reporter: Jason Sholl <jsholl>
Component: jst.j2eeAssignee: Carl Anderson <ccc>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, david_williams, raghunathan.srinivasan
Version: 3.2Flags: david_williams: pmc_approved+
raghunathan.srinivasan: pmc_approved+
ccc: pmc_approved? (naci.dai)
deboer: pmc_approved+
ccc: pmc_approved? (neil.hauge)
ccc: pmc_approved? (kaloyan)
cbridgha: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard: PMC_approved
Attachments:
Description Flags
Patch for 3.2.3 none

Description Jason Sholl CLA 2011-01-28 16:47:38 EST
This is follow on work for bug 334156 to ensure that no jars are ever treated as application clients if they are being deployed inside WARs.
Comment 1 Jason Sholl CLA 2011-01-28 16:49:17 EST
Created attachment 187886 [details]
Patch for 3.2.3
Comment 2 Chuck Bridgham CLA 2011-02-04 12:00:15 EST
approve for PMC review
Comment 3 Carl Anderson CLA 2011-02-04 13:17:05 EST
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. 

This was encountered by a customer, and it prevents proper deployment of non-single-root WARs with Application Clients mapped to WEB-INF/lib.  Currently, our code treats application clients in WEB-INF/lib as application clients (which causes further deployment to be attempted).

* Is there a work-around? If so, why do you believe the work-around is insufficient?

There is no workaround within WTP.  The user can go to the server and modify the deployment, but that is not a viable workaround.

* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?

This has been tested by hand, and the Java EE JUnit bucket has been run against it.

* Give a brief technical overview. Who has reviewed this fix? 

Carl Anderson and Chuck Bridgham have reviewed this fix.  The fix is to treat JARs in a WAR's WEB-INF/lib as JARs, instead of attempting to treat them as specific module types and do further deployment.

* What is the risk associated with this fix?

This is a relatively low risk - only application clients packaged in WEB-INF/lib are affected.
Comment 4 Carl Anderson CLA 2011-02-09 01:16:37 EST
Committed to R3_2_maintenance for WTP 3.2.3 RC3