Don't use the classpath if you can possibly avoid it. Tomcat has a classloader scheme to handle this stuff for you. The good old days of messing with the classpath weren't so good (early tomcat 3 releases). :-)

This website might help you get things together:
http://tomcat.apache.org/tomcat-4.1-doc/appdev/index.html

Here's a page that describes the <Context> element you need to write into server.xml:
http://tomcat.apache.org/tomcat-4.1-doc/config/context.html

In general, the docs on the tomcat site are fairly complete and should be used along with your book.

--David

Teh Noranis Mohd Aris wrote:

Hi,
I'm using Windows XP operating system, I've already
set the servlet.jar file to the CLASSPATH. I'm using
Tomcat version 4.1.31. I haven't made the context for
"myfirstwebapp" in server.xml. How can it be done? The
explanation in the book I'm using is not that clear.
Please help. Thank you so much.

Yours Sincerely,
TEH
--- marju jalloh <[EMAIL PROTECTED]> wrote:

What is your enviroment,which version are you using.
 Have you made context for "myfirstwebapp" in
server.xml
-Marju

Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote:
Hi,
I'm learning to use packages from a book example to
create my own servlet instead of putting the code in
the examples webapp. However the following error
occurs:

HTTP Status 404 -

/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
________________________________________
type Status report
message

/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
description The requested resource

(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet)
is not available.
________________________________________
Apache Tomcat/4.1.31

How can I fix the error? I'm sure that the servlet
is
in the correct directory and I've put the web.xml in
the WEB-INF directory. Did I miss anything? Please
help. Thanks.

Yours Sincerely,
TEH

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around http://mail.yahoo.com


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to