• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Error 404

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
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" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet> <servlet-name>Testing</servlet-name>
<servlet-class>TestingServlet</servlet-class>
</servlet>
</web-app>
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:
http://localhost:8080/index.jsp
as well as the examples in:
http://localhost:8080/examples
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!
Thanks,
web-runner
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic