Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » tutorial:building a school schedule web application
tutorial:building a school schedule web application [message #155823] Wed, 11 January 2006 07:29 Go to next message
Eclipse UserFriend
Originally posted by: faireni.walla.com

hi, i'm doing the tutorial of building a school schedule web application.
i managed to run the SchoolSchedule.jsp on step 5 of 'adding classes to
the schedule' part. after i create the servlet and run the
SchoolSchedule.jsp once again, the error 'HTTP status 404' is displayed.
the error description is "the request resource(/Schedule/Schedule.jsp) is
not available.' what happen actually? and where can i obtain the source
code for the tutorial?
thanx in advance.
Re: tutorial:building a school schedule web application [message #155995 is a reply to message #155823] Thu, 12 January 2006 02:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hjamieson.columbus.rr.com

check to make sure that:
1: your jsp is called SchoolSchedule.jsp
2: in the servlet, make sure the name of the servlet you pass to the requestDispatcher is the correct url.

The servlet forwards the request to the web page, so make sure your jsp is referred to by the same name everywhere. 404 is trying yo tell you that a name of a resource is not found.

I completed this tutorial (which was excellent) and had the same problem.

good luck!

Hugh
Re: tutorial:building a school schedule web application [message #156016 is a reply to message #155995] Thu, 12 January 2006 03:04 Go to previous messageGo to next message
Joe Dorocak is currently offline Joe DorocakFriend
Messages: 2
Registered: July 2009
Junior Member
Hi, guys. I'm trying to get the same tutorial working using eclipse 3.1.1
and WTP 1.0. I noticed some problems:

A. CREATING THE PROJECT: In WTP 1.0 there is no "File -> New -> Project.
Select Web ->J2EE Web Project". The choices are: Dynamic Web Project or
Static Web Project. I chose Dynamic.

B. VIEWING THE .JSP FILE: For Run As -> Run on Server... Select Tomcat
v5.0 Server Web browser DID NOT come up automatically!

C. CREATING THE SERVLET CLASS (THE SHOW STOPPER): In browsing for the
Superclass no choices other than java.lang.Object came up in the dialog.
So I typed in javax.servlet.http.HttpServlet and tried to Add Interfaces
but nothing came up in the Add Interfaces dialog.

I have 2 questions:

1. Did you previous posters use eclipse 3.1.1 and WTP 1.0?

2. Does anyone have any suggestions for me about how to make this eclipse
3.1.1 and WTP 1.0 configuration successfully run the "building a school
schedule web application" tutorial?
Re: tutorial:building a school schedule web application [message #156055 is a reply to message #156016] Thu, 12 January 2006 04:53 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Joe Dorocak wrote:
> Hi, guys. I'm trying to get the same tutorial working using eclipse
> 3.1.1 and WTP 1.0. I noticed some problems:
>
> B. VIEWING THE .JSP FILE: For Run As -> Run on Server... Select Tomcat
> v5.0 Server Web browser DID NOT come up automatically!

If the editor had focus at that time, you stumbled into bug 116217
(fixed for 3.1.2), in which case doing a "Run on Server" from the
Project Explorer will get you back on track.

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: tutorial:building a school schedule web application [message #156452 is a reply to message #156055] Fri, 13 January 2006 22:15 Go to previous message
Joe Dorocak is currently offline Joe DorocakFriend
Messages: 2
Registered: July 2009
Junior Member
Hi Nitin. Thanks for the reply. I did get past the browser not opening up
automatically but got stopped by bug C.:

C. CREATING THE SERVLET CLASS (THE SHOW STOPPER): In browsing for the
Superclass no choices other than java.lang.Object came up in the dialog.
So I typed in javax.servlet.http.HttpServlet and tried to Add Interfaces
but nothing came up in the Add Interfaces dialog.

Any ideas? I posted a bug (123542) to the eclipse documentation.

Thanks.
Previous Topic:How to make drag-drop available for elements in Eclipse?
Next Topic:xml editor and validate context menu
Goto Forum:
  


Current Time: Tue Apr 23 13:47:56 GMT 2024

Powered by FUDForum. Page generated in 0.03424 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top