Hi Everybody,
i've installed JServ 1.1.2-1 on a host with Mandrake 7.1, Apache 1.3.12 and jdk 1.2.2.
I've modified the given configuration files only to specify my system paths; when a client
asks for a servlet the httpd child that links the mod_jserv cores (caused by a SEGV).
The JServ server works fine, but it has never received a request.
I've configured the system in order to get the maximum log level and below I put the
log files.
Using a debug i've seen that the cores is caused in the file mod_jserv.c in the function
static int jserv_translate_handler(request_rec *r)
at the line 1488:
while (cur!=NULL) {
/* If our translator returns a non NULL pointer, we got it */
if ((result=jserv_translate_match(r, cur))!=NULL) {
/* Block direct requests to Apache JServ as servlet */
if (strstr(r->uri,"/" JSERV_SERVLET)!=NULL) {
return FORBIDDEN;
}
HERE ====> ap_set_module_config(r->request_config, &jserv_module,result);
r->handler=ap_pstrdup(r->pool,"jserv-servlet");
return OK;
}
cur=cur->next;
}
All the pointer involved in the function seems to be not null.
Below after the log files, I put my config files.
thanks
sirio
-log files- ==============================================================================================
error_log:
[Tue Sep 12 17:12:42 2000] [notice] Apache-AdvancedExtranetServer/1.3.12 (NetRevolution/Linux-Mandrake) ApacheJServ/1.1.2 PHP/3.0.16 mod_perl/1.22 configured -- resuming normal operations
[Tue Sep 12 17:12:51 2000] [notice] child pid 2280 exit signal Segmentation fault (11)
mod_jserv.log:
[12/09/2000 17:12:42:294] (INFO) Apache-JServ 1rst initialization: JVM will be started later 1 2272 2271
[12/09/2000 17:12:42:299] (INFO) Apache Module was cleaned-up
[12/09/2000 17:12:42:569] (INFO) Apache-JServ 2nd initialization starting JVM now: 1 2273 1
[12/09/2000 17:12:42:575] (INFO) wrapper classpath: /usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
[12/09/2000 17:12:42:575] (INFO) wrapper: Java VM spawned (PID=2281, PPID=2276)
jserv.log:
[12/09/2000 17:12:42:896 CEST] <info> ApacheJServ/1.1.2 is starting...
[12/09/2000 17:12:42:898 CEST] <info> Connection authentication enabled
[12/09/2000 17:12:42:910 CEST] <info> Connection allowed from localhost.localdomain/127.0.0.1
[12/09/2000 17:12:42:911 CEST] <info> Listening on port 8007 accepting 50 maximum connections
[12/09/2000 17:12:42:915 CEST] <info> Creating Servlet Zones
[12/09/2000 17:12:42:915 CEST] <info> Servlet Zone root initializing...
[12/09/2000 17:12:42:915 CEST] <debug> - Using configuration file: /etc/httpd/conf/jserv/zone.properties
[12/09/2000 17:12:42:937 CEST] <info> Initialisation timeout: 10 seconds
[12/09/2000 17:12:42:937 CEST] <info> Destroy timeout: 10 seconds
[12/09/2000 17:12:42:937 CEST] <info> Session timeout: 1800 seconds
[12/09/2000 17:12:42:937 CEST] <info> New session timeout: 1800 seconds
[12/09/2000 17:12:42:937 CEST] <info> Session check frequency: 30 seconds
[12/09/2000 17:12:42:937 CEST] <info> Autoreload on zone file changes: true
[12/09/2000 17:12:42:937 CEST] <info> Autoreload on classfile changes: true
[12/09/2000 17:12:42:939 CEST] <info> Default initArgs: {}
[12/09/2000 17:12:42:957 CEST] <debug> Creating new sessions hashtable.
[12/09/2000 17:12:42:957 CEST] <debug> Servlet Zone root initialization complete
access_log:
(empty)
-config files- ==============================================================================================
zone.properties
repositories=/home/httpd/servlets
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
jserv.conf
<IfModule mod_jserv.c>
ApJServProperties /etc/httpd/conf/jserv/jserv.properties
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServLogLevel debug
ApJServDefaultProtocol ajpv12
ApJServDefaultHost localhost
ApJServDefaultPort 8007
ApJServVMTimeout 10
ApJServSecretKey DISABLED
ApJServMount /servlet /root
ApJServMountCopy "Off"
<Location /jserv/>
SetHandler jserv-status
order deny,allow
allow from all
</Location>
</IfModule>
jserv.properties
wrapper.bin=/jdk1.2.2/bin/java
wrapper.classpath=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
bindaddress=localhost
port=8007
zones=root
root.properties=/etc/httpd/conf/jserv/zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.authentication=true
security.secretKey=/etc/httpd/conf/jserv/jserv.secret.key
log=true
log.file=/var/log/httpd/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 5000
log.queue.maxsize = 1000
log.channel=true
log.channel.info=true
log.channel.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true
log.channel.debug=true