I wrote this down partly for myself and for others that I work with, maybe
it will be helpful to some of you.  I spent several days trying to get
beans working with apache 1.3.3, jserv 1.01b and gnujsp 0.9.7.  It never
happened, so today i started over with all the new versions.  It worked.
combined with the other instructions out there, the below stuff may help to
fill in a few blanks.  of course you don't have to install exactly where i
have, change your paths accordingly.

/**
 * jdk 1.2
 */
install jdk 1.2 (jdk12-win32.exe)

/**
 * jsdk 2.0
 */
install jsdk 2.0 (jsdk20-win32.exe)

/**
 * apache
 */
install apache 1.3.4 (apache_1_3_4_win32.exe)

/**
 * jserv
 */
install jserv 1.02b (ApacheJServ1.0b2-Apche1.3.4.exe):
let the install script modify apache for you.

download the Apache-JServ-1.0b3.jar (http://java.apache.org/jserv/dist/)

After installing Apache JServ from the .exe installer, delete the installed
Apache-JServ.jar file, rename the Apache-JServ-1.0b3.jar file to
Apache-JServ.jar and put it in the same location as the original .jar file.

Second, verify all your classpath and repository settings. If any of these
point to non-existent directories or a jar or zip file is misplaced, Apache
JServ will not start.

open the jserv.properties file in the root Jserv dir:
add the path to the java exe:
wrapper.bin=e:\java\jdk1.2\bin\java.exe

wrapper.classpath=e:\program\Apache Group\Apache JServ\Apache-JServ.jar
wrapper.classpath=e:\java\JSDK2.0\lib\jsdk.jar
wrapper.classpath=e:\java\jdk1.2\lib\tools.jar

note the "-" in Apache-Jserv.jar

create a "servlets" dir under the root apache folder.
copy/create java src to there. ex. com tree
I put my zone.properties in the servlets dir.

modify in jserv.properties:
root.properties=e:\program\Apache Group\Apache\servlets\zone.properties

add to zone.properties:
repositories=e:\program\apache group\apache\servlets

servlet.login.code=com.infoglide.web.LoginServlet
(all other servlet aliases...)

/**
 * beans
 */

add to jserv.properties:
(your bean jar)
wrapper.classpath=e:\program\apache group\apache\servlets\infoglide.jar
wrapper.classpath=e:\program\apache group\apache\servlets

/**
 * gnujsp
 */
unzip GNUJSP into the base Jserv dir. (gnujsp-0.9.8.zip)

add to httpd.conf:
ApJServAction .jsp /servlets/gnujsp

add to jserv.properties:
wrapper.classpath=e:\program\apache group\apache
jserv\gnujsp-0.9.8\lib\gnujsp.jar

add to zone.properties:
(add the path to the gnujsp.jar)
repositories=e:\program\apache group\apache\servlets,e:\program\apache
group\Apache Jserv\gnujsp-0.9.8\lib\gnujsp.jar

servlets.startup=org.gjt.jsp.JSPServlet

servlet.gnujsp.code=org.gjt.jsp.JSPServlet

(I have 2 repository tags here because I think that on start-up Jserv does
not use aliases)

servlet.org.gjt.jsp.JSPServlet.initArgs=repository=e:\program\Apache
Group\Apache\servlets
servlet.gnujsp.initArgs=repository=e:\program\Apache Group\Apache\servlets
servlet.org.gjt.jsp.JSPServlet.initArgs=compiler.classpath=e:\java\jdk1.2\bin

/**
 * additional
 */
note: read the Jserv log files (jserv.log, mod_jserv.log)!!!

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to