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

> I would expect that getMessage() and possibly
> printStackTrace() is
> printed in jserv.log or apache error_log but I have
> never seen
> anything there.

printStackTrace() prints messages to System.err and
System.out.println() prints messages to System.out. To
capture those messages from JServ, you have to start
the JServ manually and redirect the system error
stream and system output stream to a log file.

My setup is Linux with Apache 1.3.11 and JServ 1.1.1,
I have wrote scripts to start/stop Apache and JServ.
The logic is:

# ... start Apache Web Server details ...
# ... rotate the old JServ system out log files
CLASSPATH=
your_classpath:your_apache_path/libexec/ApacheJServ.jar
PROPS=your_jserv_properties_file
JLOG= your_system_out/err_log_file

nohup java -classpath $CLASSPATH
org.apache.jserv.JServ ${PROPS}>${JLOG} 2>&1 &
# ... script details to capture your Java VM's process
id such that your stop-apache script can KILL -TERM
this VM

But the downside of start JServ manually is: 
whenever your VM hang/loop for some reasons (e.g. your
program errors) , no one will help you to restart it. 

Please let me know if I am wrong.

Thx & regards,

Dagan


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to