The following are the relevant parts of my configuration file and some
paths.
Be sure that your gnujsp-classes directory is writable by the server
process.
Also look at this link:
http://www.magiccookie.com/computers/apache-jserv/index.html#trouble
[preamble: $APACHE_ROOT = /opt/www, $DOCUMENT_ROOT = /opt/www/html]
-- jserv.conf (actually merged into httpd.conf) --
###############################################################################
# Apache JServ Configuration
File #
###############################################################################
ApJServManual off
ApJServProperties
/opt/www/build/Apache-JServ-1.0b3/example/jserv.properties
ApJServLogFile DISABLED # merge jserv logs into
error_log
ApJServDefaultProtocol ajpv11
ApJServDefaultPort 8007
ApJServSecretKey DISABLED # same-machine, behind a
firewall
ApJServMount /example /example
ApJServMount /servlets /servlets
ApJServMount /bobd /bobd
ApJServMountCopy on
ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
ApJServAction .jhtml /servlets/org.apache.ssi.SSIServlet
ApJServAction .xml /servlets/org.apache.cocoon.Cocoon
<Location /jserv/>
SetHandler jserv-status
order deny,allow
deny from all
allow from macroint.com
</Location>
############################## W A R N I N G
##################################
# Remember to disable or otherwise protect the execution of the Apache
JServ #
# on a production environment since this may give untrusted users to
gather #
# restricted information on your servlets and their initialization
arguments #
###############################################################################
-- jserv.properties --
###################################
# Apache JServ Configuration File #
###################################
wrapper.bin=/jdk/bin/java
wrapper.class=org.apache.jserv.JServ
wrapper.classpath=/jdk/lib/classes.zip
wrapper.classpath=/usr/lib/classes/jsdk.jar
wrapper.classpath=/u01/app/oracle/product/8.0.5/jdbc/lib/classes111.zip
wrapper.classpath=/opt/www/lib/Apache-JServ.jar
wrapper.classpath=/opt/www/lib/webmacro.jar
wrapper.classpath=/opt/www/lib/ApacheJServSSI.jar
wrapper.classpath=/opt/www/lib/gnujsp.jar
wrapper.classpath=/opt/www/lib/lotusxsl.jar
wrapper.classpath=/opt/www/lib/openxml.jar
port=8007
zones=example,servlets,bobd
example.properties=/opt/www/build/Apache-JServ-1.0b3/example/example.properties
bobd.properties=/home/rdana/java/test/servlets/bobd.properties
servlets.properties=/opt/www/servlets/servlets.properties
security.selfservlet=true
security.maxConnections=50
security.allowedAddresses=127.0.0.1
security.authentication=false
#security.secretKey=
security.challengeSize=5
log=false # hmmm, this is probably stupid
log.file=jserv.log # not really; see the .conf file
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.channel.init=true
log.channel.terminate=true
log.channel.serviceRequest=false
log.channel.authentication=true
log.channel.requestData=false
log.channel.responseHeaders=false
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletManager=true
-- servlets.properties --
###############################################################################
# Servlet Zone Configuration
File #
###############################################################################
################################ W A R N I N G
################################
#
# Unlike normal Java properties, JServ configurations have some
important
# extentions:
#
# 1) commas are used as token separators
# 2) multiple definitions of the same key are concatenated in a
# comma-separated list.
#
###############################################################################
# List of Repositories
#######################
# The list of servlet repositories controlled by this servlet zone
# Syntax: repositories=[repository],[repository]...
# Default: NONE
repositories=/opt/www/servlets
repositories=/opt/www/lib/cocoon.jar
repositories=/opt/www/lib/gnujsp.jar
repositories=/opt/www/gnujsp/gnujsp-classes
servlet.gnujsp.code=org.gjt.jsp.JSPServlet
servlet.org.gjt.jsp.JSPServlet.initArgs=repository=/opt/www/gnujsp/gnujsp-classe
s
# Classloader parameters
#########################
# Enable servlet class autoreloading.
# Syntax: autoreload.classes=[true,false] (boolean)
# Default: true
autoreload.classes=true
# Enable servlet resourced autoreloading (properties and other loaded
resources)
# Syntax: autoreload.file=[true,false] (boolean)
# Default: true
autoreload.file=true
# Set the number of millisecond to wait before giving up on initializing
a servl
et.
# (a timeout of zero means no timeout)
# Syntax: init.timeout=(long)>0
# Default: 10000 (10 secs)
init.timeout=10000
# Set the number of millisecond to wait before giving up on destroying a
servlet
.
# (a timeout of zero means no timeout)
# Syntax: destroy.timeout=(long)>0
# Default: 10000 (10 secs)
destroy.timeout=10000
# Set the number of millisecond to wait before invalidating an unused
session.
# Syntax: session.timeout=(long)>0
# Default: 1800000 (30 mins)
session.timeout=1800000
# Set how frequently (milliseconds) to check for timed-out sessions.
# Syntax: session.checkFrequency=(long)>0
# Default: 30000 (30 secs)
session.checkFrequency=30000
# SingleThreadModel Servlets parameters
########################################
# Set the initial capacity of the STM servlets pool.
# Syntax: singleThreadModelServlet.initialCapacity=(int)>1
# Default: 5
singleThreadModelServlet.initialCapacity=5
# Set the number of servlet instances should be added to the pool if
found empty
# Syntax: singleThreadModelServlet.incrementCapacity=(int)>1
# Default: 5
singleThreadModelServlet.incrementCapacity=5
# Set the maximum capacity of the STM pool
# Syntax: singleThreadModelServlet.maximumCapacity=(int)>1
# Default: 10
singleThreadModelServlet.maximumCapacity=10
################### S E R V L E T P A R A M E T E R S
######################
################################## N O T E
####################################
# When "classname" is specified, it means a Java dot-formatter full
class name
# without the ".class". For example, a class with source file named
# "Dummy.java" with a package name "org.fool" is defined as
"org.fool.Dummy".
#
# Since each servlet may have lots of private initialization data,
Apache JServ
# allows you to store those servlet initArgs in a separate file. To do
this,
# simply do not set any initArgs in this file: Apache JServ will then
look for
# a file named "[servlet classname].initargs" in the same directory of
that
# class. Note that this may work with even class archives.
###############################################################################
# Startup Servlets
###################
# Comma or space delimited list of servlets to launch on startup.
# This can either be a class name or alias.
# Syntax: servlets.startup=[classname or alias],[classname or alias],...
# Default: NONE
# servlets.startup=hello,snoop,org.fool.Dummy
# Servlet Aliases
##################
# This defines aliases from which servlets can be invoked.
# Each alias give a new instance of the servlet. This means that if a
servlet
# is invoked both by class name and by alias name, it will result in
_TWO_
# instances of the servlet being created.
# Syntax: servlet.[alias].code=[classname] (String)
# Default: NONE
# servlet.snoop.code=SnoopServlet
# servlet.hello.code=org.fool.Dummy
# Global Init Parameters
#########################
# Parameters passed here are given to each of servlets. You should put
# configuration information that is common to all servlets.
#
# The value of the property is a comma delimited list of "name=value"
pairs
# that are accessible to the servlet via the method getInitParameter()
# in ServletConfig.
# Syntax: servlets.default.initArgs=[name]=[value],[name]=[value],...
# Default: NONE
# servlets.default.initArgs=common.to.everybody=Hi everybody!
# Servlet Init Parameters
##########################
# These properties define init parameters for each servlet that is
invoked
# by its classname.
# Syntax: servlet.[classname].initArgs=[name]=[value],[name]=[value],...
# Default: NONE
# servlet.org.fool.Dummy.initArgs=message=I'm a dummy servlet
# Aliased Servlet Init Parameters
##################################
# These properties define init parameters for each servlet that is
invoked
# by its alias.
# Syntax: servlet.[alias].initArgs=[name]=[value],[name]=[value],...
# Default: NONE
# servlet.snoop.initArgs=message=I'm a snoop servlet
# servlet.hello.initArgs=message=I say hello world to everyone
--
Good luck! You might also post a message to the GnuJSP list.
mailto:[EMAIL PROTECTED]
--
"Lisp has all the visual appeal of oatmeal
with fingernail clippings mixed in."
--Larry Wall
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]