Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat7 WEB-INF/lib directory doesen't work
    text
    copied!<p>I'm new with jsp pages and just yesterday I opened a similar discussion. This could be a repeat or a very similar one and I'm so sorry whether this is the case, but are just few days that I'm developing jsp pages and I haven't understood how the enviroment, the folders, etc are "linked" together.</p> <p>I got the following error on <em>Apache Tomcat 7</em></p> <pre><code>HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application </code></pre> <p>because I included this <em>taglib</em></p> <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt; </code></pre> <p>Then, I created a folder "lib" into the "WEB-INF" one and I put there the file <em>jstl-1-2.jar</em>. A user suggested into another discussion reachable from here <a href="https://stackoverflow.com/questions/8701307/the-absolute-uri-http-java-sun-com-jsp-jstl-core-cannot-be-resolved-in-either/8701326#8701326">The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application</a> to remove the <em>standard.jar</em> but I have never had a similar file.</p> <p>Reading and surfing on the web, I read that in <em>Tomcat 7</em> should be sufficient to put <em>jstl-1-2.jar</em> into the WEB-INF/lib folder like below but both with and without that file, nothing happen. The error doesen't change.</p> <pre><code>/var/lib/tomcat7/webapps/jsp_test/web/WEB-INF/lib/jstl-1-2.jar </code></pre> <p>This is the folders three:</p> <pre><code>- webapps - ROOT - index.html - META-INF - context.xml - jsp_test - nbproject - src - conf - MANIFEST.MF - java - mypack - Display.java - web - ROOT - index.jsp - WEB-INF - lib -jstl-1.2.jar - web.xml - beans.xml </code></pre> <p>I noticed also that there's another <em>web.xml</em> file also into the tomcat 7 folder:</p> <pre><code>/etc/tomcat7/web.xml </code></pre> <p>Do I have to change something in both the <em>web.xml</em> files?</p> <p>Moreover, looking in the tomcat7-example folder there is a <em>web.xml</em> file where many libraries are written with a .tld extention:</p> <pre><code>/usr/share/tomcat7-examples/examples/WEB-INF/web.xml </code></pre> <p>I lost my way for this stupid thing, help me please! :)</p>
 

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