tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gibran Castillo <gibran.e.casti...@gmail.com>
Subject 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 19:59:38 GMT
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.

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.


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

*type* Exception report

*message* *The absolute uri: http://java.sun.com/jsp/jstl/core
<http://java.sun.com/jsp/jstl/core> cannot be resolved in either web.xml or
the jar files deployed with this application*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException: 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
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:278)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:76)
	org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:242)
	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:124)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:411)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:469)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1428)
	org.apache.jasper.compiler.Parser.parse(Parser.java:139)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:335)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/8.0.12 logs.*
------------------------------
Apache Tomcat/8.0.12

-- 


Thank you,
 *Gibran E Castillo*
*iOS 7:  434.713.8095*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message