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 August 26th, 2003, 11:11 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Hello World Type JSP!!

Hi,

I have been trying to implement the first example in the book: "JSP Web Development", and I get the 404 error:

type Status report

message /begjsp/index.jsp

description The requested resource (/begjsp/index.jsp) is not available.

I have restarted the tomcat server after creating the application directory (begjsp-ch01) in the webapps directory. I have also been checking numerous other posts on different forums and I have noticed that the server.xml file has also been updated to reflect this new application.

The Tomcat homepage shows up correctly and the example JSP pages work correctly.

If I move my index.jsp file to the examples directory it still doesn't work.

Only thing else is that I noticed a none fatal error on startup of the tomcat server: something like - "NULL relocation target has occured in .."

I am Hello World new to JSP's so any help would be appreciated.

Best Regards,
Steve

 
Old September 5th, 2003, 10:23 PM
Registered User
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

make sure that if you create a new folder, say "test", under webapps, that you also include the appropriate subfolders, even if they will not contain anything at the time. It is necessary for these folders to exist. I am not sure why your file will not work with it in the examples folder... especially if you say the other jsp examples work... only thing i can think of is when you moved your file over into the examples folder that you did not restart tomcat.

hope this helps

-rick






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP "Hello World" Bill_Thompson ASP.NET 2.0 Basics 3 December 14th, 2007 09:38 AM
Example will not work in the real world ElMorenito BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 2 October 12th, 2006 01:18 PM
GRPS "Hello World" rodmcleay C# 0 October 11th, 2005 10:56 PM





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