head	1.9;
access;
symbols;
locks
	nobody:1.9; strict;
comment	@# @;


1.9
date	99.05.10.20.16.42;	author nobody;	state Exp;
branches;
next	1.8;

1.8
date	99.05.06.12.04.33;	author nobody;	state Exp;
branches;
next	1.7;

1.7
date	99.05.04.21.33.06;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.05.04.15.33.20;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.05.04.15.30.00;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.05.04.15.21.49;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.05.04.15.18.46;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.05.04.15.17.23;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.05.04.15.17.21;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.9
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 13
IDependOn-Set: 132
IDependOn-Set: 137
IDependOn-Set: 139
IDependOn-Set: 2
IDependOn-Set: 24
LastModifiedSecs: 925992273
Parent: 24
SequenceNumber: 5
Title: Setting up JServ on NT4.0 - HOW TO
Part: 0
Author-Set: kss1@@stern.nyu.edu
LastModifiedSecs: 925831260
Type: monospaced
Lines: 128
From: Sampath, Krishna <kss1@@stern.nyu.edu>
To: Java Apache Users <java-apache-users@@list.working-dogs.com>
Date: Tuesday, May 04, 1999 10:18 AM
Subject: Setting up JServ on NT4.0 - HOW TO


i just got JServ to work on NT4.0 (SP4).
took about three long evenings to figure it all out. hope this helps. 

krishna sampath


# Checklist to get JServ working on NT4.0 (SP4), with Apache 1.3.6 and JServ 1.0b3

### the obvious gotchas...
# version of jsdk must be 2.0

# ApacheModuleJServ.dll must be the correct version

# ApacheJServ.jar must not be the zero length file that comes in the 
# distribution

# If you are using servlets downloaded from Sun, make sure that they are 
# not using any 2.1 methods


### here are some other things to watch out for... 


### httpd.conf

# file paths must  contain / (forward slash), not \ (back slash)
        ApJServProperties "E:/Apache Group/Apache JServ/conf/jserv.properties"
        ApJServLogFile "E:/Apache Group/Apache JServ/logs/jserv.log"

# make sure that your DocumentRoot and <Directory ...> directives 
# both point to the same spot
        DocumentRoot "E:/htdocs"
        <Directory "E:/htdocs">

# read the excellent paper by Mazzocchi and Fumagalli 
# "Advanced Apache JServ Techniques", especially the last two pages. 
# check the faq for its location. my own setup closely mimics their example. 
# Here, I am creating a servlet zone called weird, which will be called as:
# "http://my_server/servlets/hello"
        ApJServMount /servlets /weird


### jserv.properties

# file paths must contain \ (back slash), NOT / (forward slash).

# ensure that wrapper.bin points to SUN's java and not Microsoft's
        wrapper.bin=E:\JavaSoft\JRE\1.2\bin\java.exe

# make sure wrapper.path points to the winnt and system directories
        wrapper.path=C:\winnt;C:\winnt\system32

# the only two jar files i have needed so far are these, added by default. 
# check paths.
        wrapper.classpath=E:\Apache Group\Apache JServ\ApacheJServ.jar
        wrapper.classpath=E:\JavaSoft\JRE\1.2\lib\jsdk.jar

# this line is not inserted by default, but seems to be necessary.
        wrapper.env=WINDIR=C:\WINNT

# make sure that the zones directive points to the zone we created 
# in httpd.conf
        zones=weird

# ensure the weird zone settings are ok
        weird.properties=E:\Apache Group\Apache JServ\conf\weird.properties

# make sure that your machine is allowed access to the servlets
        security.allowedAddresses=127.0.0.1

# i have set security.authentication=false for the time being, 
# and all the logs turned on.


### weird.properties

# recall that we are trying to setup a zone called weird. 
# here are the relevant lines from weird.properties, which 
# is basically zone.properties, with these changes.

# this file also uses \ (back slash), not / (forward slash) in the paths

# ensure that the zone directory is defined
        repositories=E:\htdocs\servlets\weird

### other remarks

# IMPORTANT: make sure that the directory \servlets\weird exists 
# under your DocumentRoot. this is where your servlets in the weird zone 
# go into. this is what held me up the longest.

# you must "net stop apache" and "net start apache" each time you change 
# any configuration to ensure that the new config is read

# if you are using servlet examples from Sun, make sure that they do not 
# use jsdk2.1 methods!

# here is the applet that i used to test my JServ setup. 
# the file must be called hello.java (thanks cam!)

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class hello extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException
    {
        res.setContentType("text/html");
        PrintWriter out = new PrintWriter(res.getOutputStream());
        out.println("<html>");
        out.println("<head>");
        out.println("<title>Hello World Servlet</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<h1>Hello World Servlet</h1>");
        out.println("<p>Hello, world!</p>");
        out.println("</body>");
        out.println("</html>");
        out.close();
    }
} //end of class
EndPart: 0
@


1.8
log
@null
@
text
@a13 1
DateOfPart: 1999-May-06  5:04am
@


1.7
log
@null
@
text
@d8 1
a8 1
LastModifiedSecs: 925832000
d10 1
a10 1
SequenceNumber: 4
d14 1
d111 1
a111 1
# IMPORTANT: make sure that the directory \servlets\htdocs exists 
@


1.6
log
@null
@
text
@d5 1
a13 1
DateOfPart: 1999-May-04  8:33am
@


1.5
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 925831799
d9 1
a9 1
SequenceNumber: 3
d13 1
a13 1
DateOfPart: 1999-May-04  8:29am
d121 1
a121 1
# the file must be called hello.java (thank cam!)
@


1.4
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 925831309
d9 1
a9 1
SequenceNumber: 2
d13 2
a14 1
DateOfPart: 1999-May-04  8:21am
d16 1
a16 2
Lines: 109

d33 1
d35 7
a41 2
# ApacheJServ.jar must not be the zero length file that comes in the distribution
# If you are using servlets downloaded from Sun, make sure that it is not using 2.1 methods
d48 2
a49 3
# file paths must  contain / (forward slash), not \ (backward slash)
        ApJServProperties "E:/Apache Group/Apache
JServ/conf/jserv.properties"
d52 2
a53 1
# make sure that your DocumentRoot and <Directory ...> directives both point to the same spot
d57 5
a61 2
# read the excellent paper by Mazzocchi and Fumagalli "Advanced Apache JServ Techniques", especially the last two pages. check the faq for its location. my own setup closely mimics their example. Here, I am creating a servlet zone called weird, which will be called as:
"http://my_server/servlets/hello"
d75 2
a76 1
# the only two jar files i have needed so far are these, added by default. check paths.
d83 2
a84 1
# make sure that the zones directive points to the zone we created in httpd.conf
d87 1
a87 1
# ensure its settings are ok
d93 3
a95 1
# i have set security.authentication=false for the time being, and all the logs turned on.
d99 3
a101 1
# recall that we are trying to setup a zone called weird. here are the relevant lines from weird.properties, which is basically zone.properties, with these changes.
d106 1
a106 1
repositories=E:\htdocs\servlets\weird
d110 3
a112 1
# IMPORTANT: make sure that the directory \servlets\htdocs exists under your DocumentRoot. this is where your servlets in the weird zone go into. this is what held me up the longest.
d114 2
a115 1
# you must "net stop apache" and "net start apache" each time you change any configuration to ensure that the new config is read
d117 2
a118 1
# if you are using servlet examples from Sun, make sure that they do not use jsdk2.1 methods!
d120 2
a121 1
# here is the applet that i used to test my JServ setup. the file must be called hello.java
@


1.3
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 925831126
d9 1
a9 1
SequenceNumber: 1
d11 115
@


1.2
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 925831041
d9 2
a10 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d3 1
@
