wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes The server encountered an internal error () that prevented it from fulfilling this re Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "The server encountered an internal error () that prevented it from fulfilling this re" Watch "The server encountered an internal error () that prevented it from fulfilling this re" New topic
Author

The server encountered an internal error () that prevented it from fulfilling this re

PoornimaHemant Jerath
Greenhorn

Joined: Jul 13, 2006
Posts: 17
plz refer to the servlet on page 436 of HFSJ
and JSP code on page 437

I got the following error trying to run it:

type Exception report

message

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:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.example.web.movies.doGet(movies.java:22)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


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


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

Apache Tomcat/5.0.30

can any one help, what could be wrong?


-SCJP 1.4 (86%) , SCWCD(88%)<br />Dont tell your god how big your problems are, tell your problems how big your god is.
Martyn Clark
Ranch Hand

Joined: Apr 16, 2005
Posts: 108
Hi PoornimaHemant
Have you put the .tld files in the WEB-INF folder you will need these there for the mapping. I did notice that in the book it just says to copy the 2 files from Tomcat examples, but remeber these are custome tags so you also need the .tld files too. Hope that helps


Martyn...<br /> <br />SCJP 1.4 SCWCD 1.4
PoornimaHemant Jerath
Greenhorn

Joined: Jul 13, 2006
Posts: 17
Hi.. thanks for the reply.
But i am a little confused.
On the page number 434 of HFSJ its mentioned that you need to include the JSTL "jstl.jar" file in the WEB-INF folder of your application having JSTL tags. I did that.
Even after that do i need a ".tld" file?
That would be for which tags/uri?
My JSP file has only one uri in it and that is "http://java.sun.com/jsp/jstl/core" and i am only using the forEach tag of the core JSLT library.

please help

thanks in advance.

Poornima Jerath
Martyn Clark
Ranch Hand

Joined: Apr 16, 2005
Posts: 108
Hi
Yes you do need the tld's for these if you just copy the tld's from where ever you copied the JSTL jar's from and put them in your WEB-INF folder the issue will be resolved, Rember that although that the uri is real it dont really go anywhere apart from the uri mapping in the tld file. I had a look at the errata for the book but i could not find anything on this issue. I think it should say you also need to copy the tld files as well as the two it does state.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The server encountered an internal error () that prevented it from fulfilling this re
 
Similar Threads
can't find file tad lib descriptor:"http://java.sun.com/jstl/core"
JSTL directive problem
Problem in JSTL
Problem in my JSTL comment
HFSJ page 437