facebook

Provided Scope Pushing To Tomcat

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #456759 Reply

    paulz17
    Participant

    Version: 2015 Stable 2.0
    Build id: 13.0.0-20150518

    Using exploded war and running on the MyEclipse Tomcat v7.0

    I recently had to introduce the jsp-api into my project for a custom jsp tag that I wrote. Here is my dependency

    	<dependency>
    		<groupId>javax.servlet</groupId>
    		<artifactId>jsp-api</artifactId>
    		<version>2.0</version>
    		<scope>provided</scope>
    	</dependency>

    This is getting pushed into web-inf/lib and causing this tomcat error:

    The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

    I have tried running a clean on the project and on the sever deployment just to see if it would fix it. It did not. Is there a work around for this behavior?

    #456928 Reply

    support-swapna
    Moderator

    Paul,

    Sorry that you are seeing this issue. I could not replicate the issue at my end with a simple maven web project.

    Can you please give us some more details?

    1. Does the project have any other dependencies? It might be possible that this particular jar is also part of another dependency whose scope is not provided.

    2. Can you please check if the issue persists with a newly created simple maven web project to rule out project specific issues?

    3. If you are still seeing issues, please send us the project along with the pom.xml to help us replicate the issue at our end.

    Let us know how it works for you.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Provided Scope Pushing To Tomcat

You must be logged in to post in the forum log in