Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

j2ee newbie questions: resource not available.

Thread view: 
DaLoverhino - 01 Feb 2006 14:32 GMT
Hello.  I'm trying to learn J2EE.  I am running Apache Tomcat/5.5.12 in
Windows XP.  I must have overlooked something, but I can't seem to get
past the following problem that appears in my browser:

HTTP Status 404 - /Ch04/TopicList.jsp

type Status report
message /Ch04/TopicList.jsp
description The requested resource (/Ch04/TopicList.jsp) is not
available.

Apache Tomcat/5.5.12

That's when I type the following in my browser:

http://localhost:8080/Ch04/TopicList.jsp?topic=EL

Now, I've been able to isolate the problem.  If I remove the following
nodes from my web.xml, the program works:

 <!-- These elements are for the JSTL example -->
 <taglib>
   <taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
   <tablib-location>/WEB-INF/tlds/c-rt.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri>http://java.sun.com/jstl/format</taglib-uri>
   <taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
 </taglib>

Here is TopicList.jsp:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
 <head><title>Topic Questions</title></head>
 <body>
   <h1>Topic Questions</h1>

   <p>Click a link to get the answer.</p>
 </body>
</html>

My guess is the tomcat server can't find the jar files associated with
c-rt.tld, and fmt.tld?  So I placed those jar files into
TOMCAT_DIR\common\lib.  That doesn't seem to work either.  I think I am
using the standard tags 1.1.

Any leads/solutions would be appreciated.
slippymississippi@yahoo.com - 01 Feb 2006 20:02 GMT
I would say it looks like you need a taglib directive in your JSP, but
I don't even see where you are *using* JSTL in your JSP.

Is the posted html code supposed to contain any JSTL?
DaLoverhino - 01 Feb 2006 23:09 GMT
> I would say it looks like you need a taglib directive in your JSP, but
> I don't even see where you are *using* JSTL in your JSP.
>
> Is the posted html code supposed to contain any JSTL?

It use to, but I took it out, because I was trying to chase down the
error message posted.  I started to chop parts of the jsp off to
isolate the problem.

Anyways, thanks for the reply... I think I'll put it back in and see if
anything changes.  I did catch typos in the web.xml as I was isolating
the problem.  So maybe, if I put the use of JSTL in the page, the
problem would be 'solved'.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.