[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
GnuJSP with Apache, Windows98, JDK1.2.2
There follows my notes for installing GnuJSP on Apache on Windows 98 with
JDK1.2.2. I followed the install.apache notes supplied with the download but
since they are for Linux some changes are necesary, I though you may like to
know. My notes reflect what I had to do to get the demo pages working, now I
shall backup my files and start to adjust parameters to see what exactly is
required.
At some stage I shall get these reformatted and posted on the www.
Installation notes for gnujsp on Win98
- Martin Newstead (seth_brundell@bigfoot.com)
These notes briefly describe the process that I needed to install gnujsp
(gnujsp100.zip) on
Windows 98 (Intel PII 400). I started with the following (the download files
are included in
brackets)
JDK 1.2.2 (jdk1_2_2-win32.exe)
Apache 1.3.9 (apache_1_3_9_win32.exe)
JServ 1.0 (Apache_JServ_1.0.exe)
JSDK 2.0 (jsdk20-win32.exe)
My Apache installation is on a development/research machine and only has one
zone which is the default.
Thus in zone.properties I added the following (I copied the two jar files
from the install location to
my servlet directory D:\Apache\Servlets)
repositories=D:\Apache\Servlets\gnujsp10.jar
repositories=D:\Apache\Servlets\servlet-2.0-plus.jar
I am not using Servlet aliases in this installation so instead of the lines
in the alias section I added
the following in the Servlet Init Parameters section
servlet.SurveyServlet.initArgs=resultsDir=D:\Temp
servlet.org.gjt.jsp.JspServlet.initArgs=checkclass=true,pagebase=D:\apache\h
tdocs,scratchdir=D:\Apache\temp,debug=true,
compiler=builtin-javac -classpath
%classpath%;%scratchdir%;D:\Apache\Servlets;D:\Apache\Servlets\servlet-2.0-p
lus.jar;D:\Apache\Servlets\gnujsp10.jar -d %scratchdir% -deprecation
%source%
The classpath parameter was the cause of my initial problems I believe. The
separators must be semi-colons {;} and not
colons (:) as per the original install.apache document. For good measure I
reproduced the exact case of my directory names.
For JDK1.2.2 I added
wrapper.classpath=C:\jdk1.2.2\lib\tools.jar
to my jserv.properties as instructed.
Finally, I told JServ what to do with .jsp files by adding the following to
my mod_jserv.conf file (remember I chose not
to alias my servlets so I expand the full package name here)
ApJServAction .jsp /servlets/org.gjt.jsp.JspServlet
I tested my installation by copying the examples directory to a subdirectory
of my html docs directory, kept my fingers
crossed and typed http://merckx/examples/hello.jsp into my browser (my host
is known as merckx, but localhost would
do !)
et voila it worked.