The moose likes Servlets and the fly likes Tomcat Error 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Error 404" Watch "Tomcat Error 404" New topic

Tomcat Error 404

Web Runner

Joined: Jan 27, 2003
Posts: 1
I know this must be a common topic, but I have tried many of the things suggested here and elsewhere, without success.
My setup is based on the first example (around p. 12) of "Java for the Web with Servlets, JSP, and EJB" by Budi Kurniawan.
This is the error I am getting:
HTTP Status 404 - /myApp/servlet/Testing
type Status report
message /myApp/servlet/Testing
description The requested resource (/myApp/servlet/Testing) is not available.
Apache Tomcat/4.1.18-LE-jdk14
This is my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">
<servlet> <servlet-name>Testing</servlet-name>
My Tomcat is installed in:
C:\Program Files\Apache Group\Tomcat 4.1\
and my application folder (myApp) is %CATALINA_HOME%\webapps\myApp\
I am also running j2sdk1.4.1_01
and j2sdkee1.3.1.
Also, I do get this page:
as well as the examples in:
Could someone help me resolve why I keep getting the 404 error?
Is is that I have installed to a long-named path with spaces? Is it the location of my app folder?
Any help would be greatly appreciated, as this error is driving me nuts!
I agree. Here's the link:
subject: Tomcat Error 404
It's not a secret anymore!