Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 210575 - EJB jar file added to EAR through "J2EE Moudle dependencies" not recogonized as EJB module.
Summary: EJB jar file added to EAR through "J2EE Moudle dependencies" not recogonized ...
Status: RESOLVED DUPLICATE of bug 141445
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rob Frost CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-21 15:02 EST by Danny Ju CLA
Modified: 2008-03-31 08:37 EDT (History)
2 users (show)

See Also:


Attachments
EJB jar file used in reproduce (7.22 KB, application/java-archive)
2007-11-21 15:03 EST, Danny Ju CLA
no flags Details
EJB project used to create the EJB jar (16.15 KB, application/zip)
2007-11-21 15:04 EST, Danny Ju CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Ju CLA 2007-11-21 15:02:41 EST
Build ID: Build id: M20070921-1145

Steps To Reproduce:
One WebLogic server adapter user had a use case where he wants to use a pre-package EJB jar file in a WTP EAR project. By adding the external EJB jar to EAR project through "J2EE Moudle dependencies", we would expect WTP
recognize the JAR is an EJB and update application.xml
and internal models to reflect the new module. But it doesn't. Without this information, WebLogic and other server adapter will not be able to deploy the EJB properly. 

As a comparison, if an EJB project is added, application.xml
is updated properly.  

Reproduce steps using WLS:
- Create WLS server
- Create Web project and add to EAR
- Deploy EAR to WLS server and make sure it works
- Now find a EJB jar (attached later) compatible with WLS server
- Add the EJB Jar file to EAR through J2EE Dependency
- Notice the application.xml is NOT update with the new moudle
- Update application.xml with the new EJB module (use the JAR file name as module name)
- Start server and deploy

Expected:
- Check WLS console
- EJB jar being deployed as EJB module on server

Actual
- The jar file not deployed as EJB



More information:
Similar result can be reproduced with JBoss4.0 generic server adapter. 

Original bug for WebLogic server adapter 
http://bugzilla.bea.com/show_bug.cgi?id=148
Comment 1 Danny Ju CLA 2007-11-21 15:03:39 EST
Created attachment 83466 [details]
EJB jar file used in reproduce
Comment 2 Danny Ju CLA 2007-11-21 15:04:54 EST
Created attachment 83467 [details]
EJB project used to create the EJB jar
Comment 3 Rob Frost CLA 2007-11-23 13:03:42 EST
I'll take for further investigation.
Comment 4 Rob Frost CLA 2008-03-31 08:37:27 EDT

*** This bug has been marked as a duplicate of bug 141445 ***