tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: 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
Date Thu, 02 Oct 2014 20:11:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Gibran,

On 10/2/14 3:59 PM, Gibran Castillo wrote:
> I deployed donow62 Spring MVC app into Tomcat by placing
> donow62.xml file in $CATALINA_HOME/conf/Catalina/localhost
> 
> The contents of donow62.xml are as follow: <Context 
> docBase="/Users/gibranecastillo/Documents/workspace/CollegeLife/donow62/website"
>
> 
reloadable="true"/>
> 
> They basically point to the website directory in the spring mvc
> project in my eclipse workspace.

What is the directory structure of ".../donow62/website"?

> I looked at the Tomcat logs and it says donow62 deployed
> successfully.  In the "Tomcat Web Application Manager" I can see
> /donow62 listed there.
> 
> When I clicked on /donow62 it sends me to this URL 
> http://localhost:8080/donow62/ but instead of getting expected
> result and the web page, I get HTTP Status 500 [see web browser log
> below]
> 
> My Spring MVC "donow62" app is using JSTL and it is in the
> classpath. Using Eclipse on the donow62 project I created User
> Libraries that reference all the dependencies for donow62.  The
> SERVLET user library has <> el-api.jar -
> /Library/Tomcat/apache-tomcat-8.0.12/lib/el-api.jar <> jasper.jar -
> /Library/Tomcat/apache-tomcat-8.0.12/lib/jasper.jar <>
> jasper-el.jar -
> /Library/Tomcat/apache-tomcat-8.0.12/lib/jasper-el.jar <>
> jsp-api.jar - /Library/Tomcat/apache-tomcat-8.0.12/lib/jsp-api.jar 
> <> servlet-api.jar - 
> /Library/Tomcat/apache-tomcat-8.0.12/lib/servlet-api.jar <>
> javax-servlet.jsp.jstl-1.2.1.jar - 
> /Users/gibranecastillo/Documents/java/servlet/javax-servlet.jsp.jstl-1.2.1.jar
>
>
> 
The exception is basically saying that the donow62 app is missing the JSTL
> dependency, the jar, any suggestions on how fix this are welcome.

Is the JSTL JAR file in
/Users/gibranecastillo/Documents/workspace/CollegeLife/donow62/website/WEB-INF/lib?
If not, you aren't actually using it.

Although I don't do it myself, Eclipse is pretty good at deploying web
applications to Tomcat itself: you shouldn't have to even create your
own context.xml file and fill it with data.

If you want to do everything manually (believe me, I understand), then
you'll need to make sure that your Eclipse project successfully builds
to a WAR-like structure which contains, among other things, a WEB-INF/
directory and all of the things that should be in there (like
lib/*.jar). If you don't do that, then you won't really be deploying a
web application... you'll effectively be mapping a directory on the
disk into a URL space and getting no other benefits.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJULbGLAAoJEBzwKT+lPKRYQ04P/AsAB5jVCEh4zH56W6zLSsui
NYOffS3QnNgVzpwh/JV+WOyCMXwrkuWNRSGlBnsniUM4Z5HrzebfYJm1EdsG2FsP
2KKeGltiLAXXHKj/10Lxh8Rv1Q+wFx4pTjwJIJmy0qwyS8mamzhhDY1DRalwQsuA
tbsrgw76v57ljjL7+99+RjZGnhoL6CNdjyOFTwArLMnsebD8WBIDf8hv1sS5HqQV
E/OkmXOxk3fSj7LzPMGH2X4QE1jxKcUTUUnESqU32vJ1xkMdBDVul64ihbh6CaT5
chmI+x6bsLT8CgOGwISlydVTG60BTV9mMpXW9TJ02unlB8wAsR7t9192wmhs/Qmz
ReyIlUJDnlHO5c0B7KmjQjlDWDjwpexef//W+AHFuWr5UMJO7hdIh0m0VUdb3Bv+
qqM18HH0q9t3TlvWvp89jvAhGqSOeYBGO+NU97kEwmlxq3Hu6+W3Fqf4TR6SjlEZ
MnlY3IO1ZMhpnWZuIfV/ff3YkF1EFqGToF7v//mxi8SufASxqIaPl9k5x8C4AkyN
VORR/zrAm370aemg7fUNOGfW8OBSO0KsJdDlW961ZwEWC8AuZpLlrm/sNtVZpc2T
Lqa9/njB6sKbfqOiUGtyvx6UWIYHguR4th86bV8jvUX/K85hOJQJRH/C5626oKsH
WTuwkQf5zzGoXbVFKD/t
=QaZn
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message