Re: Why is Tomcat trying to resolve relative paths to C:WINNTsystem32?
Wednesday, February 12, 2003 02:15 PM
specifying the webapp directory for your log isn't necessarily the best idea. when you overwrite that one with a new .war, you could lose all of your log files. if you still want to do it, just specify the absolute path. instad of webapp.log, use c:\temp\webapp.log.
as for blah.xsl, the same issue is affecting you here. the current working directory for tomcat is c:winntsystem32, in order for you to change it, you have to alter the start up script or specify absolute paths in your app. you can do this more cleanly by passing the absolute path to your webapp as a property via a servlet init parameter. alternatively, you could package the xsl files up and refer to them using the getResourceAsStream(String name) of java.lang.Class.