|
|
jserv.properties(or tomcat.properties)
Any questions and comments are welcome to me.
The path for this configuration file must be pointed by 'ApJServProperties' directive in 'jserv.conf'(or tomcat.conf). Tomcat3.1 binary distribution includes the template of this file, which is $TOMCAT_HOME/conf/tomcat.properties. This file describes how the servlet server is started by the JServ module. The path to Java interpriter, the class name of the starter class, the class path which is passed to the Java interpriter and other environment variables can be specified in this file. With such information is provided, the JServ module can successfuly start the servlet server as the user of 'nobody' (or any other httpd user). The following is the example of this file with some explanation. The template file for this configuration file supplied with the distribution has more entries, but the entries other than ones listed in the example below can be omitted. (They are required if we use the original JServ as the servlet server.)
# The Java Virtual Machine interpreter. # Syntax: wrapper.bin=[filename] (String) # Note: specify a full path if the interpreter is not visible in your path. wrapper.bin=/export/home/soft/lib/jdk/bin/java # Arguments passed to Java interpreter (optional) # Syntax: wrapper.bin.parameters=[parameters] (String) # Default: NONE # We have a chance to specify 'tomcat.home' property, whose # value should always be same as $TOMCAT_HOME wrapper.bin.parameters=-Dtomcat.home=/export/home/soft/lib/java2/jakarta-tomcat/ # Apache JServ entry point class (should not be changed) # Syntax: wrapper.class=[classname] (String) # Default: "org.apache.jserv.JServ" # The 'main' method of the class specified by this # property is called by the JServ module. # 'org.apache.tomcat.startup.Tomcat' is the starter class # of Tomcat servlet server. wrapper.class=org.apache.tomcat.startup.Tomcat # CLASSPATH environment value passed to the JVM # Syntax: wrapper.classpath=[path] (String) # List the 'jar' files required to run Tomcat. # Don't forget to add the path to 'tools.jar', which is # required to compile 'JSP' sources. # 'WEB-INF/classes' and 'WAR' files for each context # will be automaticaly included in CLASSPATH by Tomcat, # so we must not list them. wrapper.classpath=/export/home/soft/lib/java2/jakarta-tomcat/lib/jasper.jar wrapper.classpath=/export/home/soft/lib/java2/jakarta-tomcat/lib/servlet.jar wrapper.classpath=/export/home/soft/lib/java2/jakarta-tomcat/lib/webserver.jar wrapper.classpath=/export/home/soft/lib/java2/jakarta-tomcat/lib/xml.jar wrapper.classpath=/export/home/soft/lib/jdk/lib/tools.jar wrapper.protocol=ajpv12 bindaddress=jun_tomcat port=8007 security.selfservlet=false security.authentication=false
Now that the JServ module is configured to start the Tomcat servlet server. The next step is to set up Tomcat to work with the JServ module.
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.
|
|
ALL CONTENTS COPYRIGHT 2000
, Jun Inamori. All rights reserved.
Any questions and comments are welcome to
Jun Inamori
.