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

Bug 366563

Summary: Utility projects not deployed to the J2EE Preview Server
Product: [WebTools] WTP ServerTools Reporter: Michal Politowski <mpol>
Component: jst.serverAssignee: jst.server <jst.server-inbox>
Status: RESOLVED DUPLICATE QA Contact: Elson Yuen <eyuen7>
Severity: normal    
Priority: P3 CC: shr31223
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michal Politowski CLA 2011-12-13 10:54:16 EST
Build Identifier: 20110916-0149

When trying to "Run on Server" a dynamic web project using a utility project, a jar for the utility project is put in WEB-INF/lib when using a Tomcat server, but not when using a J2EE Preview Server. This makes the started webapp fail when trying to use a class from the utility project.

Reproducible: Always

Steps to Reproduce:
1. create a new dynamic web project (DWP)
2. create a new utility project (UP)
3. in the DWP properties add the UP to the deployment assembly
4. execute the Run on Server command on the DWP project
4.1. choose the J2EE Preview as the server type and add the DWP project to it
5. after the server starts verify that the deployed application (probably in workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/DWP/) does not contain the UP jar in WEB-INF/lib
Comment 1 Roberto Sanchez Herrera CLA 2015-05-14 14:48:01 EDT
Looks like a duplicate of bug 370839

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