Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Maven WTP Project not respecting [provided] scope(Web project build/debug problem)
icon4.gif  Maven WTP Project not respecting [provided] scope [message #729726] Mon, 26 September 2011 20:49 Go to next message
Tom  is currently offline Tom Friend
Messages: 16
Registered: April 2010
Junior Member
I have a large multi-project workspace which builds a web app. I just moved to Eclipse Indigo from Galileo and reinstalled the latest M2E plugin (1.0) and WTP plugin.

Now whenever I try to run this project in Tomcat, the server starts but the app fails and returns the following 500 error (truncated for brevity):

org.apache.jasper.JasperException: /WEB-INF/views/templates/wide.jsp(1,63) Unable to read TLD "META-INF/c.tld" from JAR file "file:/D:/JavaSoftware/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FirstCallWAR/WEB-INF/lib/standard-1.1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV

Poking around on the web, I see that this is sometimes caused by the Servlet and JSP jars being included in the WEB-INF/lib directory of my project, and of course they are there.

Problem: I have these marked as "provided" in my POM.XML file. Why are they still being published?

Re: Maven WTP Project not respecting [provided] scope [message #756293 is a reply to message #729726] Fri, 11 November 2011 19:37 Go to previous message
Luca Graf is currently offline Luca GrafFriend
Messages: 17
Registered: September 2011
Junior Member
In current version of indigo you need to install the m2e-wtp (Maven Integration for WTP) plug-in. That's does the trick for me.
Iam not sure why the m2e plugin from not honour the as provided scoped dependencies?

The m2e-wtp plugin also include some additional features especially for web projects
(.war ressource filtering for example).

You can found more information here:

Greetings Luca
Previous Topic:m2e + Spring DM Server Tools error
Next Topic:Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published.
Goto Forum:

Current Time: Tue Apr 20 19:40:33 GMT 2021

Powered by FUDForum. Page generated in 0.01908 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top