Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>&lt;dependency&gt;</code> tag is part of <a href="http://maven.apache.org" rel="nofollow noreferrer">Maven</a>. Maven is a dependency management tool which enables you to manage dependencies without the need to manually carry loose JAR files around. In essence, Maven will automatically download the right compiletime dependencies and Maven will automatically fill the <code>/WEB-INF/lib</code> with the right runtime dependencies, all based on configuration in <code>pom.xml</code>. The entry which you've there basically tells Maven to exclude the Spring EL dependency from inclusion in <code>/WEB-INF/lib</code>. </p> <p>As you're not using Maven, you have in essense just to do exactly the same as what Maven would be doing under the covers: <em>not</em> placing the Spring EL JAR file in <code>/WEB-INF/lib</code>. </p> <p>However, I wonder if that's the right solution. I don't think so.</p> <p>The EL API is by default <strong>already</strong> provided by Tomcat itself. So placing your own in <code>/WEB-INF/lib</code> would only cause problems if it's not of the same version. You're not clear on why you don't want to remove it, perhaps you incorrectly thought that the particular JAR file would solve a particular problem which you didn't tell anything about, but after all it's actually the wrong solution. </p> <p>Keep the <code>/WEB-INF/lib</code> free of libraries which are <em>already</em> offered by the servletcontainer itself. Whatever problem you thought to solve with placing EL API JAR in <code>/WEB-INF/lib</code> has to be solved differently. Perhaps you were using Eclipse and are trying to fix <code>javax.el</code> compilation errors the wrong way. See then the 2nd link below for the right solution.</p> <h3>See also:</h3> <ul> <li><a href="https://stackoverflow.com/questions/8487048/java-lang-linkageerror-javax-servlet-jsp-jspapplicationcontext-getexpressionfac">java.lang.LinkageError: javax.servlet.jsp.JspApplicationContext.getExpressionFactory</a></li> <li><a href="https://stackoverflow.com/questions/4076601/how-do-i-import-the-javax-servlet-api-in-my-eclipse-project/">How do I import the javax.servlet API in my Eclipse project?</a></li> <li><a href="https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem">https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload