Hi Mark,
This is how my web.xml looks:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<!-- added the following section -->
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
</web-app>
----- Original Message -----
From: "Mark Thomas" <ma...@apache.org>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, May 25, 2009 11:31 PM
Subject: Re: Please help
Sibusiso khoza wrote:
HI,
I'm quite new at using tomcat. I've installed tomcat 4.1.
If you are new to Tomcat then start with the latest version (6.0.18).
The 4.1.x branch is about 1-2 months away from being de-supported.
I've followed my book (Java Programming (Shelly Cashman Series)) and
modified my web.xml ("invoker")
If the book says to use the invoker servlet, put the book in the bin
(better yet the recycling bin) and get a newer/better book.
in the web-inf directory & enabled servlet reloading for tomcat. Tomcat
seems to be working well & all the servlet examples work fine. I assume
my classpaths are all correct.
You should not be making any changes to any class paths. Tomcat handles
all of this for you. If you need to edit the class path used by Tomcat,
you are doing something wrong.
I've susscessfully compiled a servlet called WebStocks which is the
controller in my MVC model and placed it in the classes folder in the
web-inf directory.
I am able to access the index.html through (localhost:8080/index.html).
My aplication requires you to log on the index.html and when you click
"log on", the userName and password are supposed to bo posted to the
WebStocks servlet.
However, when I click "log on", all that is displayed is:
Status 404 - /servlet/WebStocks
Looks like your servlet mappings are broken. What is in web.xml?
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org