Bug 160079 - [deployables] Module ids are different between project and binary structure
Summary: [deployables] Module ids are different between project and binary structure
Status: CLOSED WONTFIX
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Jason Sholl CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-10-06 15:32 EDT by Tim deBoer CLA
Modified: 2011-01-20 09:12 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim deBoer CLA 2006-10-06 15:32:40 EDT
When a J2EE module exists within a project, it has a name and id that's fairly simple, e.g. "PublishTestWeb". When the same module is exported out and reimported as a binary module within the EAR, its name and id change to "lib/PublishTestEAR/EarContent/PublishTestWeb.jar".

While this seems like a simple difference, it causes two problems:
 1) Users will see ugly names like "lib/PublishTestEAR/EarContent/PublishTestWeb.jar" in the add/remove module wizard and Servers view.
 2) If a user has a module deployed to the server, and then switches to or from binary mode, the app will be missing on the server. They will need to remove the old application and add the new one back to be able to run it.

I've tracked this back to J2EEDeployableFactory.createModuleDelegates(), but I don't know enough about it to understand the difference between binary and regular modules.
Comment 1 Chuck Bridgham CLA 2006-10-06 15:50:27 EDT
Jason assigning this to you
Comment 2 Tim deBoer CLA 2006-10-11 14:37:03 EDT
Just found out that getContextRoot() also returns this full lib/xyz string instead of the correct context root. People are unlikely to do Run on Server for binary web modules, but this would cause an invalid URL in the browser.
Comment 3 David Williams CLA 2006-10-26 04:50:54 EDT
mass update to remove target for all those targeted to 1.5.3 that were "normal" severity and "priority 3" (on the surface those dont' seem serious enough to fix in a maintenance release). 

If I have made an error pleasae reset target and set priority appropriately. 
Comment 4 Jason Sholl CLA 2011-01-20 09:12:00 EST
Closing old bugs.