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

Bug 362136

Summary: JAR files in EAR are not deployed to test server
Product: [WebTools] WTP Java EE Tools Reporter: Bill Elliot <belliot>
Component: jst.j2eeAssignee: Rob Stryker <stryker>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: amj87.iitr, belliot, ccc
Version: 3.3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Bill Elliot CLA 2011-10-26 17:44:47 EDT
Build Identifier: 20110916-0149

When I add a jar to my ear and then deploy the ear the jar is not deployed, and when the "Deployment Descriptor" in the Project Explorer view is expanded and then expand the Modules there is a Binary entry. When this Binary is opened there is a blank entry for each JAR defined in the application.xml.

Reproducible: Always

Steps to Reproduce:
1.Add a JAR module to the EAR's applicaiton.xml (<module><java>some.jar</java></module>
2.Add the JAR to the EarContent folder.
3.Right click project and select Properties.
4.Select Deployment Assembly
5.Add the some.jar to the assembly.
6.Click OK
7.Go to Server view and publish EAR project.

All is published, except the some.jar. When the "Deployment Descriptor" in the Project Explorer view is expanded and then expand the Modules there is a Binary entry. When this Binary is opened there is a blank entry for each JAR defined in the application.xml.

I also have JBoss Tools and Spring Tools Suite installed.
Comment 1 Ayushman Jain CLA 2011-10-27 02:18:32 EDT
Moving to Web Tools
Comment 2 Bill Elliot CLA 2011-10-27 11:50:19 EDT
One other part of the behaviour. If you remove the module entry in the application.xml for the some.jar, the blank entry that was in the Binary list will also be removed.
Comment 3 Carl Anderson CLA 2011-11-02 15:13:36 EDT
Bill, is the main problem here the fact that the jar files are not deployed?

How are you adding the jar to your ear?

Also, judging by your Build Identifier, this is Eclipse Indigo SR1, right?  (That corresponds to WTP 3.3.1)
Comment 4 Carl Anderson CLA 2011-11-02 15:14:24 EDT
Rob, is this a possible Deployment Assembly issue?
Comment 5 Bill Elliot CLA 2011-11-02 16:52:22 EDT
Yes, I am running Indigo SR1.

Yes, the problem is that the JARs that have been added to my EAR and added to the Deployment Assembly are not being deployed. Another part of the problem is the display in the Deployment Descriptor is showing the JARs in the descriptor under binary as blank.