On Tue, 24 Apr 2001, Glenn Nielsen wrote:
> >From their behaviour, it appears that Tomcat 3.x and Tomcat 4 handle
> use of stderr and stdout differently.
>
> Running under unix with either works great for me.
>
> But under windows others I work with have had problems.
> When running Tomcat 4 with -security and -djava.security.debug=all,
> the security debug output gets dumped to the DOS shell. Any attempt
> to use the DOS redirect to file fails to capture the output. This
> makes it nearly impossible to debug Java SecurityManager security exceptions.
>
> Anyone know the difference between Tomcat 3.x and Tomcat 4 in how they
> handle stdout and stderr? Or have any ideas of how to capture the
> output from Tomcat 4 under windows?
>
I'd bet that somewhere in the 3.x code there is a line:
System.setErr(System.out);
to reset the error stream to the same as standard output.
I'm OK with you putting that into Bootstrap.java, as long as you make sure
it works with a security manager installed :-).
> Thanks,
>
> Glenn
>
Craig