Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337986 - Classes of maven workspace dependencies are not published
Summary: Classes of maven workspace dependencies are not published
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: Future   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard: Maven
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 10:40 EST by Charles FENDT CLA
Modified: 2012-05-01 16:02 EDT (History)
2 users (show)

See Also:


Attachments

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