Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2008, 05:13 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSP FILE IS NOT RUNNING

FOLLOWING IS MY JSP FILE,


<%@ taglib uri="http://java.sun.com/jsp/jstl/core_rt" prefix="c" %>

<html>
<head>
<title>
ViewAllMyObjects
</title>
</head>
<body bgcolor="#ffffff">
<h1>
JBuilder Generated JSP
</h1>

<table border="1" width="100%">
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Address</th>
      <th>Email</th>
      <th>Phone</th>
    </tr>
  </thead>

<c:forEach items="${myObjectModel}" var="mobj" varStatus="status">
  <tr>
    <td> <a href="MyObjectForm.html?id=${mobj.id}">${mobj.id}</a> </td>
    <td> ${mobj.name}</td>
    <td> ${mobj.address}</td>
    <td> ${mobj.email}</td>
    <td> ${mobj.phone}</td>
   </tr>
</c:forEach>

<tr>
  <td colspan="5"><a href="MyObjectForm.html">Click here to add new

Object</a></td>
</tr>
</table>

</body>
</html>


I GET FOLLOWING ERRORS, WHEN I TRY TO RUN IT ON WEB BROWSER.




HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core_rt) cannot be resolved in either web.xml or the jar files deployed with this application
    at org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:60)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:385)
    at org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:109)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<ini t>(TagLibraryInfoImpl.java:116)
    at org.apache.jasper.compiler.Parser.parseTaglibDirec tive(Parser.java:312)
    at org.apache.jasper.compiler.Parser.parseDirective(P arser.java:339)
    at org.apache.jasper.compiler.Parser.parseElements(Pa rser.java:749)
    at org.apache.jasper.compiler.Parser.parse(Parser.jav a: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(C ompiler.java:185)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:355)
    at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:427)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:142)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:240)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:187)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:199)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:145)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:596)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:955)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:139)
    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:596)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:955)
    at org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2460)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:133)
    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:596)
    at org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:119)
    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:594)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:594)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:955)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:127)
    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:596)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:955)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:157)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:595)



--------------------------------------------------------------------------------

Apache Tomcat/4.1.37


COULD SOMEON LET ME KNOW WHAT IS GOING WORNG?

 
Old May 30th, 2008, 09:34 AM
Registered User
 
Join Date: Oct 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This link http://p2p.wrox.com/topic.asp?TOPIC_ID=71734
joins you and I as having the same problem.

Surely you and I could be directed to go to some page, enter the Apache log error and be told the source of the problem.

I will track replies to your post as possible solutions to my post.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem running a JSP arzamendip Pro JSP 0 September 11th, 2006 03:48 PM
problem in running jsp rkt_mkp123 Pro JSP 3 July 23rd, 2006 02:57 AM
running jsp from WAR files samarthvn JSP Basics 3 April 2nd, 2006 09:59 PM
Running JSP in Tomcat. javamaniac JSP Basics 6 December 17th, 2005 08:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.