I am using tomcat 5.5 on windows xp. I don't know why but it doesn't write the stack traces to the log file. So I am looking for alternative ways. Is there any way to pipe the stack traces to a file without altering the source code?
The reason being that exception messages are written to the standard error stream rather than standard out. Use the & character on the command line to redirect standard error. You should also look into using Tomcat's integral logging (with the Jakarta Commons classes). Using a logging API gives you a lot of functionality compared to plain System.out
The command "start" opens a new command window. The second argument, "Tomcat" is the title for that new command window. The important commands, the ones you want to issue, are the third and following commands.