tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Conlin" <>
Subject Apache and Tomcat running, cant hit servlets in new directory...
Date Fri, 01 Sep 2000 19:06:31 GMT

I have Apache and Tomcat up and running.
I wish to create servlets and jsp pages in a place other then
The place I wish to do this is


I have created a directory structure with the following.

c:\mec_dev\Web-Inf\classes\ (.class)

I have followed the instructions and done the following things.

- 1 -
Edited http.conf as follows

include "c:/tomcat/conf/my-tomcat-apache.conf"

- 2 -

Edited my-tomcat-apache.conf as follows

Alias /mec_dev C:\mec_dev
<Directory "C:\mec_dev">
    Options Indexes FollowSymLinks
ApJServMount /mec_dev/servlet /mec_dev
<Location /mec_dev/WEB-INF/ >
    AllowOverride None
    deny from all

- 3 -

Edited server.xml as follows

<Context path="/mec_dev" docBase="C:\mec_dev" debug="9" reloadable="true">

- 4 -

Created a web.xml file in C:\mec_dev\Web-Inf

like this

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"




When I use the browser to hit

The example pops up no problem, however when I hit


404 error, and the tomcat.log says....

Context log: path="/mec_dev" Can't find servet HelloWorldExample
Context log: path="/mec_dev" In error handler 404 null / R( /mec_dev +
/servlet/HelloWorldExample + null)
Context log: path="/mec_dev" Error: Calling servlet Wrapper(tomcat.errorPage

View raw message