----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi to All,

I�ve worked for some days/nights on starting with Apache, Jserv, GNUJSP,

Tomcat and all that.
When I use Autostart-Mode (ApJservManual off) everything works fine, the

Jserv-Servlet-Engine starts up on the ports I�ve configured (Default
8007) and my servlets and  jsp�s work fine.
But wenn I try do use the manual mode (APJservManual on) without
changing the anything in my configuration, and I try to start up the
Jserv-Servlet engine with
path_to_jdk/bin/java  org.apache.jserv.JServ
/usr/local/www/apache/conf/jserv.properties -r
then I get the following error-message:

ApacheJServ/1.1: Error found creating the socket:
java.net.ConnectException: Connection refused

"netstat -an" is telling me, that there is no conflict on the socket
8007.

My last constellation is Apache3.1.9 with DSO, JSDK2.0, JSERV1.1 (I use
ajpv12) GnuJSP1.0.0.
As Java-Implementation i tried JDK116_v5, JDK117_v3, or JDK1.2.


Can someone please give me some help?
Many thanks in advance

Klaus Litfin (email: [EMAIL PROTECTED])


Here is my exact configuration:

The Java-Classpath  I�ve tried to set it on many different places, but
my last configuration was to set in the Shell-Script
path_to_jdk/bin/java
CLASSPATH=
$JAVA_HOME/classes:
$JAVA_HOME/lib/classes.jar:
$JAVA_HOME/lib/rt.jar:
$JAVA_HOME/lib/i18n.jar:
$JAVA_HOME/lib/classes.zip:
/usr/local/Java/gnujsp-1.0.0/lib/gnujsp10.jar:
/usr/local/Java/gnujsp-1.0.0/lib/servlet-2.0-plus.jar:
/usr/local/www/apache/libexec/ApacheJServ.jar:
/usr/local/Java/JSDK2.0/lib/jsdk.jar

The relevant parts of my httpd.conf
   <IfModule mod_jserv.c>
        ApJServManual on
        ApJServSecretKey DISABLED
        ApJServProperties /usr/local/www/apache/conf/jserv.properties
        ApJServLogFile  /usr/local/www/apache/logs/jserv.log
        ApJServMount /test /test
        ApJServDefaultProtocol ajpv12
        ApJServDefaultHost 127.0.0.1
        ApJServDefaultPort 8007
        ApJServMountCopy on
        ApJservAction .jsp /jsp/gnujsp
        ApJservMount /jsp /jsp
</IfModule>

jserv.properties

##It doesn�t matter for my problem if  I use the wrapper.classpath or
##if I specify the CLASSPATH  in the Shell-Skript path_to_jdk/bin/java
#wrapper.classpath=/usr/local/www/apache/libexec/ApacheJServ.jar
#wrapper.classpath=/usr/local/Java/JSDK2.0/lib/jsdk.jar
wrapper.bin=/usr/local/Java/jdk117_v3/bin/java
wrapper.protocol=ajpv12
bindaddress=localhost
port=8007
zones=root,test,jsp
root.properties=/usr/local/www/apache/conf/jserv/zone.properties
test.properties=/usr/local/www/apache/conf/test.properties
jsp.properties=/usr/local/www/apache/conf/jsp.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.allowedAddresses=127.0.0.1,192.168.1.100
security.authentication=false
log=true
log.file=/usr/local/www/apache/logs/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 500
log.queue.maxsize = 1000
log.channel.info=true
log.channel.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true

my zone-files

for example test.properties

repositories=/usr/web/test/cgi-bin/servlets
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10

jsp.properties (GnuJSP)

repositories=/usr/local/Java/gnujsp-1.0.0/lib/gnujsp10.jar,/usr/local/Java/gnujsp-1.0.0/lib/servlet-2.0-plus.jar,/usr/web/test/cgi-bin/jsp

autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
servlet.gnujsp.code=org.gjt.jsp.JspServlet
servlet.gnujsp.initArgs=checkclass=true, jserv=true ,
pagebase=/usr/web/test/cgi-bin/jsp,
scratchdir=/usr/web/test/cgi-bin/jsp/scratchdir, debug=true,
compiler=builtin-javac -classpath
%classpath%:%scratchdir%:/usr/web/test/cgi-bin/jsp/beans -d %scratchdir%

-deprecation %source%








--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to