aspose file tools
The moose likes JSP and the fly likes jstl with jsp uri: http://java.sun.com//jsp/jstl/core cannot be resolved    Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jstl with jsp uri: http://java.sun.com//jsp/jstl/core cannot be resolved    " Watch "jstl with jsp uri: http://java.sun.com//jsp/jstl/core cannot be resolved    " New topic
Author

jstl with jsp uri: http://java.sun.com//jsp/jstl/core cannot be resolved

srilatha allada
Greenhorn

Joined: Feb 12, 2009
Posts: 3
Hi Friends,
I am trying to do a simple spring web-mvc application
I am using apache-tomcat-4.1.36-LE-jdk14

my index.jsp is :
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%-- Redirected because we can't set the welcome page to virtual URL --%>
<c:redirect url="/hello.htm"/>

and hello.jsp is :
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<html>
<head><title>Hello :: Spring Application</title></head>
<body>
<h1>Hello-Spring Application</h1>
<p>Greetings,it is now <cut value="${now}"/></p>
</body>
</html>

this is the the include.jsp
<%@ page session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

I am using spring-framework-2.5.6 with dependencies, so i supose it have the right version of JSTL.I copied standard.jar and jstl.jar to my /WEB-INF/lib directory and copied c.tld and fmt.tld to /WEB-INF .
when I tried to access the index.jsp I got the following error
org.apache.jasper.JasperException: /index.jsp(0,0) 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.DefaultErrorHandler.jspError(DefaultErrorHandler.java:49)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:383)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:265)
at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:298)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:336)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:749)
at org.apache.jasper.compiler.Parser.parse(Parser.java:77)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:159)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:111)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:355)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)

Please help me with this.
Thanks in advance,
simple.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56168
    
  13

The JSTL 1.1 is not compatible with Tomcat 4. You'll need to update to Tomcat 5 or 6, or use JSTL 1.0.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
And you should in no way extract the JAR files nor copy the loose TLD files anywhere and certainly not redefine them in the web.xml of your webapp. Just place the JAR files in the classpath. That's all.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
srilatha allada
Greenhorn

Joined: Feb 12, 2009
Posts: 3
Bear Bibeault wrote:The JSTL 1.1 is not compatible with Tomcat 4. You'll need to update to Tomcat 5 or 6, or use JSTL 1.0.


Thankyou Bear Bibeault.
I installed tomcat5 and this worked.
And as Bauke Scholtz said I kept the jar files in classpath . And now my application is working

Thankyou friends.
srilatha allada
Greenhorn

Joined: Feb 12, 2009
Posts: 3
Bauke Scholtz wrote:And you should in no way extract the JAR files nor copy the loose TLD files anywhere and certainly not redefine them in the web.xml of your webapp. Just place the JAR files in the classpath. That's all.


I placed jar files in classpath. and now my application is working fine.
Thankyou
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56168
    
  13

"simple allada", please check your private messages for an important administrative matter.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jstl with jsp uri: http://java.sun.com//jsp/jstl/core cannot be resolved
 
Similar Threads
Trying to use jstl
Java Server Pages examples from SUN J2EE Tutorials
struts 1.1 application error under tomcat 4.1
jstl problem
JSTL killing me