This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Tomcat Error 404

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!