----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Woah!  *Slips flame retardant underwear on*  Sorry about that jon, my bad.

----------------- Updated post -------------------

I'm using the following:
    Linux Mandrake 6.1 (2.2.13 kernel with patches)
    Apache Server 1.3.9
    Apache JServ 1.1b2
    Blackdown JDK 1.2 pre2

After starting the web server (which works for static pages), whenever I try
to access any servlets like the stock IsItWorking servlet, the connection is
made but produces no output and never closes (until the browser timeout).

"ps aux | grep nobody" returned httpd processes and a java process.

The URL I'm using is
    http://localhost/servlets/IsItWorking

and the "java" command works on the command line for root and
non-priviledged users alike.  The jserv.properties file contains full-path
references to ApacheJServ.jar and jsdk.jar, those paths are valid and the
files are located therein.

I set the security policy for Blackdown to allow class loading, io, and net
connections according to the 1.2 spec.

There is no error listed in the jserv.log file or apache's error log.

I've tried using native threads/JIT and green threads/no JIT with no change
in behavior so it probably isn't internal to the JVM.

Anyone have any ideas where I might be screwin' the pooch?

---------------

Update: Per lou's suggestion, telnetting to port 8007 shows it to be active.
I guess it is a mod_jserv config problem...

---------------

- Miles Elam


====================================
Relevant portions of Apache's httpd.conf:
====================================

    ###

    LoadModule jserv_module       modules/mod_jserv.so

    ###

    AddModule mod_jserv.c

    ###

    Include /etc/httpd/conf/jserv/jserv.conf

===================================
jserv.properties (Comments removed for brevity's sake):
====================================

wrapper.bin=/usr/bin/java
wrapper.bin.parameters= -green -Djava.compiler=NONE

wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
wrapper.classpath=/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=false
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.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true

=============================================
jserv.conf
====================================

<IfModule mod_jserv.c>

ApJServManual off
ApJServProperties /etc/httpd/conf/jserv/jserv.properties
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServLogLevel notice
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8007
ApJServSecretKey /etc/httpd/conf/jserv/jserv.secret.key
ApJServMount /servlets /root
ApJServMount /servlet /root
ApJServMountCopy on

<Location /jserv/>
  SetHandler jserv-status

  order deny,allow
  deny from all
  allow from localhost
</Location>

</IfModule>

============================================
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

============================================
java.policy
====================================

// permissions for Apache JServ

grant codebase "file:/usr/lib/apache/ApacheJServ.jar" {
        permission java.io.FilePermission
"file:/home/httpd/classes/servlet-2.0.jar", "read";
        permission java.io.FilePermission "file:/home/httpd/servlets/-,
"read";
        permission java.lang.RuntimePermission "createClassLoader";
        permission java.net.SocketPermission
"*:","connect,accept,listen,resolve";
}



--
--------------------------------------------------------------
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