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

Bug 359993

Summary: virtualClasspath in context.xml is contains wrong entries (e.g. servlet-api jar)
Product: z_Archived Reporter: peter.dick
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: igor, matthew
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Exmaple of a wrong context.xml file
none
The project properties I
none
The project properties II
none
Effective pom.xml none

Description peter.dick CLA 2011-10-05 10:36:22 EDT
Build Identifier: 20110615-0604

In my Web-project my project properties are the following;

- Java-Build-Path contains Maven dependencies
- Deployment Assembly contains Maven dependencies

After publishing the project on a Server with the following server options

- checked: Serve modules without publishing 
- checked: Publish module contexts to separate XML Files

I get a wrong context.xml

The XML contains all Jars in the virtualClasspath including the jar-Files which are declared as provided in the pom.xml

In consequence I can not start the (Tomcat) server as the virtuallClasspath contains Jars like servelt-api.jar and others.




Reproducible: Always
Comment 1 peter.dick CLA 2011-10-05 10:38:48 EDT
Created attachment 204597 [details]
Exmaple of a wrong context.xml file

For Your convenience the classpath-entries are separated by line.
Comment 2 peter.dick CLA 2011-10-05 10:40:46 EDT
Created attachment 204598 [details]
The project properties I
Comment 3 peter.dick CLA 2011-10-05 10:41:03 EDT
Created attachment 204599 [details]
The project properties II
Comment 4 peter.dick CLA 2011-10-05 10:43:00 EDT
Created attachment 204600 [details]
Effective pom.xml
Comment 5 Matthew Piggott CLA 2011-10-05 10:50:46 EDT
Are you using m2e-wtp?  If so issues should be opened at https://issues.sonatype.org/browse/MECLIPSEWTP
Comment 6 peter.dick CLA 2011-10-05 11:30:31 EDT
this problem exists with asnd without the m2e-wtp plugin. In my opinion it looks like a problem of org.eclipse.jst.server.tomcat.loader.WtpDirContext.
Comment 7 Igor Fedorenko CLA 2011-10-05 11:40:32 EDT
(In reply to comment #6)
> this problem exists with asnd without the m2e-wtp plugin. In my opinion it
> looks like a problem of org.eclipse.jst.server.tomcat.loader.WtpDirContext.

Feel free to reopen this bug and move it to wtp bucket.
Comment 8 Denis Roy CLA 2021-04-19 13:24:16 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/