Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362136 - JAR files in EAR are not deployed to test server
Summary: JAR files in EAR are not deployed to test server
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rob Stryker CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 17:44 EDT by Bill Elliot CLA
Modified: 2011-11-02 16:52 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.