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

Bug 337986

Summary: Classes of maven workspace dependencies are not published
Product: [WebTools] WTP Java EE Tools Reporter: Charles FENDT <charles.fendt>
Component: jst.j2eeAssignee: Roberto Sanchez Herrera <shr31223>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: major    
Priority: P3 CC: ccc, gurselan
Version: unspecified   
Target Milestone: Future   
Hardware: All   
OS: All   
Whiteboard: Maven

Description Charles FENDT CLA 2011-02-23 10:40:18 EST
Build Identifier: I20110127-2034

My project have Maven dependencies that are other projects. If all other projects are closed, all jars are published and all works fine. If I open an other project, the maven dependency is not an jar anymore, but a project of my workspace. Then those classes are not deployed and the server publication won't work !

Development become quite complex !

Reproducible: Always

Steps to Reproduce:
1. create a dynamic web project (A) with maven dependencies
2. create a java project (B)
3. make (A) depends on (B). declare in the web.xml a servlet that is a class of (B)
4. close (B)
5. start  the server -> all work
6. stop the server
7. open (B)
8. start the server -> fail : the NoClassDefFoundError, the (B) classes are not deployed and could not be used !
Comment 1 Carl Anderson CLA 2011-02-25 00:12:26 EST
This could be Java EE Tools, or it could be Server Tools.

Could you attach the stack trace associated with the NoClassDefFoundError?
Comment 2 Carl Anderson CLA 2011-02-25 00:14:02 EST
Also, could you clarify the exact level of Eclipse/WTP you are using?

And, if you could attach a workspace for us to debug with, things would happen faster.
Comment 3 Carl Anderson CLA 2011-08-25 16:42:46 EDT
Retargeting to 3.4.0, but if nothing more is attached, as per previous request, this will get closed.