I'm using solaris-7/sparc with apache_1.3.6, jsdk20-solaris2-sparc,
and Apache_JServ_1.0.
When running with 'ApJServManual off', I get this error in error_log:
[date] [crit] (2)No such file or directory: Apache JServ encountered
a fatal error; check your ApJServLogFile for details if none are
present in this file. Exiting.
and in jserv.log:
[date] (ERROR) an error returned initializing protocol "wrapper"
[date] (ERROR) in init all protocols "wrapper" returned an error
[date] (EMERGENCY) Error initializing protocols
When I switch to 'ApJServManual on' I can start the server,
but (of course) calling the /servlets/ directory returns an internal
server error.
[date] (EMERGENCY) ajp11: can not connect to host 127.0.0.1:8007
[date] (EMERGENCY) ajp11: connection fail
[date] (ERROR) an error returned handling request via protocol "ajpv11"
When I now try to run the class 'org.apache.jserv.JServ' manually,
the browser just waits, and jserv.log shows this error:
[date] (EMERGENCY) ajp11: cannot scan servlet headers
[date] (ERROR) an error returned handling request via protocol "ajpv11"
it seems JServ needs more data than Apache sends, so it waits
indefinitely for the rest.
My questions are: Why can't I run in auto (non-manual) mode?
and why doesn't JServ return a reply?
I've enclosed my config files, maybe it's just a stupid mistake
with a path or something. Oh, and if it matters, I chose static linking,
not DSO.
*** httpd.conf:
<IfModule mod_jserv.c>
ApJServManual on
# ApJServSecretKey /usr/local/apache/conf/jserv.secret.key
ApJServSecretKey DISABLED
ApJServProperties /usr/local/apache/conf/jserv.properties
ApJServLogFile /usr/local/apache/logs/jserv.log
ApJServMount /servlets /servlets
</IfModule>
<Location /status/jserv>
SetHandler jserv-status
order deny,allow
allow from all
</Location>
*** jserv.properties:
wrapper.bin=/usr/bin/java
wrapper.classpath=/usr/local/jsdk/lib/jsdk.jar
wrapper.classpath=/usr/local/jserv/lib/ApacheJServ.jar
wrapper.classpath=/usr/local/apache/servlets
zones=servlets
servlets.properties=/usr/local/apache/conf/jserv.servlets.properties
security.remote.administration=true
security.allowedAddresses=all
security.authentication=false
#security.secretKey=/usr/local/apache/conf/jserv.secret.key
log=true
log.file=/usr/local/apache/logs/jserv.trace
...
*** jserv.servlets.properties:
repositories=/usr/local/apache/servlets
*** manual launch:
java -classpath
/usr/local/jsdk/lib/jsdk.jar:/usr/local/jserv/lib/ApacheJServ.jar
org.apache.jserv.JServ /usr/local/apache/conf/jserv.properties
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]