Eldad wrote:
> 
> 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

This indicates a problem auto-starting the JVM process

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

Are you sure that the JVM is running when you start it manually? Try 'ps
-ef | grep java'


> My questions are: Why can't I run in auto (non-manual) mode?
> and why doesn't JServ return a reply?

My experience is that these sort of problems are usually either a simple
misconfiguration (it is easier if you understand the difference bewteen
the wrapper.classpath and the repositories directives) or permission
problems. By default apache (and JServ) run as nobody. When you run it
manually are you running it as 'nobody'? su to root and then su to
nobody and start your JVM manually to test this

Damian

-- 
Damian Fauth                                       201 Sussex Street
Software Engineer                                   Sydney, NSW 2000
John Fairfax Holdings Ltd                                  Australia
[EMAIL PROTECTED]                    Ph. (+612) 9282 3528


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

Reply via email to