home *** CD-ROM | disk | FTP | other *** search
- Servlet support for Apache
- --------------------------
-
- This package allows servlets to be run in Apache 1.1.3.
-
- Installation
- ------------
-
- Apache installation requires that you install a version of the JDK,
- the JSDK, and the Apache servlet module.
-
- Installing the Apache servlet module
- ------------------------------------
-
- Apache module for running servlets. This Apache module lets you run servlets
- from your Apache web server.
-
- To install the module:
-
- 1) Get the *source* distribution of Apache, not a binary distribution,
- from "http://www.apache.org/dist/". Unpack it.
-
- 2) Copy mod_servlet.c into the Apache src directory.
-
- 3) Follow the instructions in the Apache src/INSTALL file:
- 3a) Edit Configuration, setting your system customizations as the
- comments direct, and adding this to the list of modules:
- Module servlet_module mod_servlet.o
- 3b) Configure
- 3c) make
-
- 4) Continue with the instructions in the Apache README file:
- 4a) Copy the Apache conf/*.dist files to conf/*.conf.
- 4b) Edit conf/*.conf, setting your local system configuration.
- 4c) Add this to conf/srm.conf:
- <Location /servlet>
- SetHandler servlet-handler
- </Location>
- 4d) Add ServletConfig commands if you want to override the defaults:
- ServletConfig JAVA_HOME /opt/local/pkgs/java
- ServletConfig JAVA_EXE java
- ServletConfig JAVA_EXE_PATH /opt/local/pkgs/java/bin/java
- ServletConfig CLASSPATH /opt/local/pkgs/java/lib/classes.zip
- ServletConfig SERVAPI_HOME /opt/local/pkgs/ServAPI
- ServletConfig SERVLET_HOME /opt/local/pkgs/ServAPI/servlets
- ServletConfig SERVLET_CONFIG /opt/local/pkgs/ServAPI/servlets.properties
- ServletConfig NCGI_CLASS sun.servlet.apache.NcgiServletGate
- ServletConfig NCGI_HOST localhost
- ServletConfig NCGI_PORT 31461
- ServletConfig NCGI_AUTHFILE /tmp/ncgiauth
- 4e) Start apache. You should be able to run the module via
- a "/servlet" URL
-
- The Apache home page is http://www.apache.org/
- The Apache module API is documented at http://www.apache.org/docs/API.html
- The Apache Module Registry: http://www.zyzzyva.com/server/module_registry/
- The JavaWebServer home page is http://jserv.javasoft.com
-
-
- Configuring Servlets
- --------------------
-
- Configuring servlets is done through the servlet properties file specified
- by the SERVLET_CONFIG option. The format of this file is explained in the
- README file.
-
-
- Compiling Servlets
- ------------------
-
- If you have set up your CLASSPATH variable to include both the standard
- Java classes and the Servlet API classes, you should be able to compile
- your servlets like any other Java programs.
-
-
- Locating the Documentation
- --------------------------
-
- HTML documentation is in the doc/ directory. The API documentation is
- in doc/apidoc/packages.html
-
- Documentation will also be available at the JavaServer home page. Any future
- updates to the documentation will be posted to the JavaServer home page.
-
- Limitations
- -----------
-
- Due to incompatable changes to the module API in Apache version 1.2beta,
- the servlet module will only run in version 1.1.3.
-
-
- Contacting Us
- -------------
-
- If you have any comments on this JSDK release then please send email to
- java-server-feedback@javasoft.com
-
-