Raj,

Those lines in wrapper.properties cause servlet stdout and stderr to be
redirected the files jvm.stdout and jvm.stderr in the directory specified by
wrapper.tomcat_home.  The default behaviour should be just what you want.

However, there is a bug in 3.2b6 that causes odd behaviour when these files
already exist when the service starts.  The service opens the files but
doesn't seek the file pointer to EOF before starting to write to the files
so the output isn't appeneded to the log files.

The fix is trivial and I posted the diffs to tomcat-dev this morning.  You
might try deleting the jvm.stderr and jvm.stdout files and restarting tomcat
to see if your servle output appears in the files.

Marc

-----Original Message-----
From: Rajnish Bhaskar [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 06, 2000 3:56 AM
To: [EMAIL PROTECTED]
Subject: JK_NT_SERVICE


Hi all,
        I'm using the JK_NT_SERVICE to run Tomcat (3.1) as a service
on NT.  I've been looking through the wrapper.properties file to try
and find any way to save any output via System.out.println to a file,
rather than disappearing into oblivion as seems to happen.  I've
found the following lines:

wrapper.stdout=$(wrapper.tomcat_home)\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\jvm.stderr

This seems to redirect stdout and stderr to somewhere.  How can I
change these to point to a log file somewhere without mucking up
the system?

Thanks,
Raj.

--------------------------
Rajnish Bhaskar
[EMAIL PROTECTED], http://i.am/rajy
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
Only buffoons refer to the Internet as the Information Superhighway.
     -- (The Rough Guide to the Internet 1999)

Reply via email to