Tagged: esd55nzl
- This topic has 2 replies, 3 voices, and was last updated 17 years, 2 months ago by Loyal Water.
-
AuthorPosts
-
SubhashkongMemberI am new to Java Web development. When I am trying to run a small Servlet program, I am getting this error.
Nov 19, 2007 8:37:59 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:194)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:174)
at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1162)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:758)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:551)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Nov 19, 2007 8:38:36 AM org.apache.catalina.core.ApplicationContext log
INFO: helloworld: init
***************************
This is the Index.jsp file%@ taglib prefix=”jstl-core” uri=”http://java.sun.com/jsp/jstl/core” %>
<html>
<head>
<title>RainForest – Testing VideoCatalogServlet</title>
</head><body>
<h2>Ex 3.1 – Testing VideoCatalogServlet</h2>
<hr>
<form method=”GET” action='<jstl-core:url value=”/VideoCatalogServlet”/>’>Select a video category
<SELECT name=”video_category”>
<OPTION>Action & Adventure
<OPTION>Comedy
<OPTION>Drama
<OPTION>Horror
<OPTION>Suspense
<OPTION>Science Fiction
</SELECT><INPUT type=submit value=”Search”> <INPUT type=reset value=”Clear”>
</form>
</body>
</html>
****************************
Here is the code of solution_ex31.xml<Context docBase=”c:\crs570\solution_ex31\WebContent” reloadable=”true”>
<Resource name=”jdbc/RainForestDB”
auth=”Container”
type=”javax.sql.DataSource”
driverClassName=”com.mysql.jdbc.Driver”
factory=”org.apache.commons.dbcp.BasicDataSourceFactory”
url=”jdbc:mysql://localhost/test_crs570?autoReconnect=true”username=”javauser”
password=”javauser”maxActive=”20″
maxIdle=”10″
maxWait=”10000″
removeAbandoned=”true” /></Context>
<!–
driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost/test_crs570″
–>
************************************
Here is my Context.xml:<Context>
<Resource name=”jdbc/RainForestDB”
auth=”Container”
type=”javax.sql.DataSource”
driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost/test_crs570;autoReconnect=true”username=”javauser”
password=”javauser”maxActive=”20″
maxIdle=”10″
maxWait=”10000″
removeAbandoned=”true” /></Context>
<!–
driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost/test_crs570″
–>***************
Any help will be appreciated. Thanks
Subhash
hm9Member>>> SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this applicationWhat tag lib do you use ?
e.g. if you are using <%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %> than it is JSTL 1.1 and requires JSP 2.0Next question is what Tomcat version do you use? If you are using 4.1 than it does not support JSP 2.0
What version of JSTL do you use? What is the JSTL file name? and where did you put this file? i.e. Tomcat server should be able to resolve the path.
Loyal WaterMemberMoving to Off Topic >> Software Development.
-
AuthorPosts