I'll try to supply as possible so that we don't have to go back and forth.
Directory Structure
(all seems to be correct, based on unpacking and deploying server to C:\)
C:\apache-tomcat-5.5.15
- web.xml is in C:\apache-tomcat-5.5.15\conf\web.xml
- servlet-ssi.jar is in C:\apache-tomcat-5.5.15\servlets\lib\servlets-ssi.jar
(renamed)
All of my test JSPs and Servlets are in C:\apache-tomcat-5.5.15\webapps\ and
they seem to run fine from there.
..\jsp-examples
..\servlets-examples
I've set up a "testdir" directory under ROOT.
the web.xml is as follows:
<!-- 3/8 - taking comments out here to enable SSI servlet, also changing
virtual to 1 for relative, replace "-->" after /servlet> to restore back
comments; tried the virtualWebappRelative value as "0" and "1" - same result;
Not sure if
-->
<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
org.apache.catalina.ssi.SSIServlet
</servlet-class>
<init-param>
<param-name>buffered</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>expires</param-name>
<param-value>666</param-value>
</init-param>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>
SERVER SIDE INCLUDES LIVE ON PUBLIC DOMAIN:
http://deborahpangle.com/dp/logo.shtml
http://deborahpangle.com/dp/timedisplay.shtml
CODE FOR LOGO.SHTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!--#include virtual="images/logo.gif"-->
</body>
</html>
CODE FOR TIME.SHTML
http://deborahpangle.com/dp/logo.shtml
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>The Greenwich Mean Time is <!--#echo var="DATE_GMT"--> and I am so happy
to be here.
</body>
</html>
ENVIRONMENT VARIABLES
I can run JSPs, applets, and servlets ok, I think these are ok.
CLASSPATH variable is set with this value (the Servlets+JSP directory follows
from Marty Hall's coreservlets training, but currently there're no servlets or
JSPs in there.
C:\Servlets+JSP;C:\apache-tomcat-5.5.15\common\lib\servlet-api.jar;C:\apache-tomcat.5.5.15\common\lib\jsp-api.jar
JAVA_HOME variable is
C:\j2sdk1.4.2_11
JRE_HOME variable is
C:\Program Files\Java\jre.5.0_06
-lee