Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 5th, 2008, 05:13 AM
Registered User
 
Join Date: May 2008
Location: , , .
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?

Reply With Quote
  #2 (permalink)  
Old May 30th, 2008, 09:34 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
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.



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:51 AM.


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