Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359993 - virtualClasspath in context.xml is contains wrong entries (e.g. servlet-api jar)
Summary: virtualClasspath in context.xml is contains wrong entries (e.g. servlet-api jar)
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 10:36 EDT by peter.dick CLA
Modified: 2021-04-19 13:24 EDT (History)
2 users (show)

See Also:


Attachments
Exmaple of a wrong context.xml file (29.46 KB, text/xml)
2011-10-05 10:38 EDT, peter.dick CLA
no flags Details
The project properties I (49.21 KB, image/jpeg)
2011-10-05 10:40 EDT, peter.dick CLA
no flags Details
The project properties II (59.83 KB, image/jpeg)
2011-10-05 10:41 EDT, peter.dick CLA
no flags Details
Effective pom.xml (89.60 KB, text/xml)
2011-10-05 10:43 EDT, peter.dick CLA
no flags Details

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