Hi Mark,
Great reply. Thanks.
Let me give you a bit more detail...
Yes, Apache is configured to run with mod_jk.
Here's a detailed breakdown of my setup (works locally with Just Tomcat and no Apache, naturally...):
web.xml's
servlet and servlet mapping tags:
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>TestServlet.HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
================
Here's the entry I added to mod_jk.conf:
JkMount /TestServlet/* ajp13
(I also tried JkMount /HelloWorld ajp13)
Other tags in the mod_jk.conf file include:
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
JkMount /*.do ajp13
JkMount /manager/* ajp13
================
Here's the FORM tag from the Hello.jsp that calls the Servlet on it's ON SUBMIT button.
<form ACTION = "/TestServet/HelloWorld">
=================
The actual server directory structure has the WEB-INF folder with web.xml, there's a directory in WEB-INF called classes in which there is the expected directory "TestServlet", in which there is a single class file "HelloWorld.class". This is the standard directory setup.
The Webapp is outside the Webapps folder so there is no "auto-discovery", but the domain is listed in SERVER.XML and is "read in" at Tomcat start time.
Other
Java code runs fine on this site, including
JDBC and other classes.
Just not Servlets.
==================
A typical output from anything I've tried so far, is:
HTTP Status 404 - /TestServlet/HelloWorld
type Status report
message /TestServlet/HelloWorld
description The requested resource (/TestServlet/HelloWorld) is not available.
Apache Tomcat/5.0.28
========================
Can you see what I've got wrong?
I look forward to your reply (and any others!) <s>
Thanks.
-- Mike