home *** CD-ROM | disk | FTP | other *** search
-
- Servlet Support for Netscape
- ----------------------------
- This package allows servlets to be run in Netscape's Enterprise 2.x,
- FastTrack 2.x and Enterprise 3.0 servers.
-
- Installation
- ------------
- As with any system software installation, it is important to ensure that
- you have good backups before you begin. Please backup your system.
-
- These instructions assume that you already have a copy of Netscape's
- server installed. Below, <ns-home> refers to the server's root directory.
- In Unix, it might be something like /usr/ns-home. Under Windows NT, it
- may be a directory like D:\Program Files\Netscape\Server.
-
- In addition, it is assumed that you have the Java Servlet Development Kit
- (JSDK) installed in the directory <jsdk-home>.
-
- You will next need to unzip the contents of <jsdk-home>/lib/classes.zip
- into the directory <ns-home>/plugins/java/local-classes to install the
- servlet support classes for Netscape's server. For example, on Unix,
-
- % mkdir /usr/ns-home/plugins/java/local-classes
- % cd /usr/ns-home/plugins/java/local-classes
- % unzip /usr/local/jsdk/lib/classes.zip
-
- Or under Windows NT,
-
- D:> cd D:\Program Files\Netscape\Server\plugins\java\local-classes
- D:> unzip D:\jsdk\lib\classes.zip
-
- Ensure that Java is enabled for your server. The steps to do this are
- typically:
- 1) start the Netscape administration interface
- 2) select the server you wish to manage.
- 3) select the Programs button.
- 4) select Java from the sidebar.
- 5) make sure that the "Run Java" option is set to yes.
-
- For exact instructions, check your server documentation.
-
- Next, you need to modify the file <ns-home>/https-<host>/config/obj.conf
- as follows, where <host> is the host name of the machine running the server.
- Instead of https-, the directory name may begin with httpd in FastTrack.
-
- 1. Under the rules for object "default", add the following line immediately
- following the NameTrans rule for /server-java:
-
- NameTrans from="/servlet" fn="pfx2dir" dir=<servlet-dir> name="servlet"
-
- where <servlet-dir> is the directory where servlets will be stored (for
- example, <jsdk-home>/servlets)
-
- 2. At the end of the file add the following three lines to create a rule for
- object "servlet":
-
- <Object name="servlet">
- Service fn="java-run" class="sun/servlet/netscape/NSRunner" vpath="/servlet" initfile="<nshome>/https-<hostname>/config/servlets.properties"
- </Object>
-
- Please check the README file for information on the contents of the
- servlets.properties file.
-
- There is an additional step necessary for Enterprise Server 3.0 only. After
- manually updating the obj.conf file, it will be necessary for you to tell the
- server to recognize the changes. This is done in the following way:
-
- 1) start the Netscape administration interface
- 2) select the server you wish to manage.
- 3) select the Apply button in the upper right hand corner.
- 4) click on the Load Configuration Changes button.
-
-
- Assuming that the above steps have been performed correctly, after restarting
- your server you should be able to invoke any servlet in <servlet-dir> with the
- following URL syntax:
-
- http://<host>/servlet/<servlet name>/...
-
- Anything following the servlet name will be passed to the servlet as
- PATH_INFO and QUERY_ARGS information.
-
- If you have problems
- --------------------
-
- The most likely cause of problems with Netscape servlets is that the
- server-side Java VM is misconfigured. To find out if your VM is misconfigured,
- try:
-
- http://<host>/server-java/BrowserDataApplet
-
- If this Netscape supplied url doesn't work for you, server side Java is not
- running correctly on your server. Please consult your server documentation
- for help in this matter.
-
- Some hints:
-
- The two most common causes of VM misconfiguration are setting your CLASSPATH
- variable before starting the server, and failing to enable server-side Java.
-
-
-
- Limitations
- -----------
- Current limitations in this release:
-
- 1. If a servlet class file is changed, then you will need to restart the
- server in order for the change to take effect.
-
- 2. The servlets run under Netscape's VM. This means all servlets _must_
- be compiled with the 1.0.2 version of the JDK, and use only 1.0.2 classes.
- For information on when Netscape will support 1.1 in their server VM,
- please contact Netscape.
-
- 3. The netscape VM does not fully handle multithreading. As a result, you
- may see multiple VMs started, with some terminating. This will cause
- servlets which rely on in memory state information to fail. The init()
- and destroy() methods should be used to save and restore state information.
-
- 4. If the servlet properties file is changed, you will need to restart the
- server in order for the change to take effect.
-
- Problems
- --------
- If you have any feedback on this JSDK release then please send email to
- java-server-feedback@javasoft.com.
-